Nested collections convert to domain types
All 3 scenarios hold
A student passes on their own average, so Pass Count is a count of students rather than of grades. Emma's average in the second row is exactly the pass mark, which is the boundary the rule is decided at.
expected outcome
broken scenario
| Scenario | Student grades | Pass Mark | Highest Grade? | Average Grade? | Pass Count? |
|---|---|---|---|---|---|
| Every student above the mark |
| 70 | 98 | 89.4 | 3 |
| One below, one at the mark |
| 70 | 82 | 67.2 | 2 |
| No students at all | [:] | 70 | 0 | 0.0 | 0 |