Skip to content

Commit

Permalink
Grade school exercise: A student cannot simultaneously be in two grad…
Browse files Browse the repository at this point in the history
…es since the users' names are unique (#1735)
  • Loading branch information
pedrorolo authored Dec 11, 2020
1 parent e54e5c3 commit 03529d0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions exercises/grade-school/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@
},
"expected": ["Aimee"]
},
{
"uuid": "dece43c8-3ba5-11eb-8fdf-7f8daeaeb5f2",
"description": "A student can't be in two different grades",
"property": "roster",
"input": {
"students": [
["Aimee", 2],
["Aimee", 1]
],
"desiredGrade": 2
},
"expected": []
},
{
"uuid": "233be705-dd58-4968-889d-fb3c7954c9cc",
"description": "Adding more students adds them to the sorted roster",
Expand Down

0 comments on commit 03529d0

Please sign in to comment.