From 03529d08e743599bf42ccd811c3f46a3ea79ce7c Mon Sep 17 00:00:00 2001 From: Pedro Rolo Date: Fri, 11 Dec 2020 16:07:28 +0000 Subject: [PATCH] Grade school exercise: A student cannot simultaneously be in two grades since the users' names are unique (#1735) --- exercises/grade-school/canonical-data.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/exercises/grade-school/canonical-data.json b/exercises/grade-school/canonical-data.json index a17f90baaa..61f78ac529 100644 --- a/exercises/grade-school/canonical-data.json +++ b/exercises/grade-school/canonical-data.json @@ -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",