Currently the test case does not test the above scenario.
- Given student A add to specific grade. E.g., Student A add to grade 2. And student B add to grade2
- When student A is add again into different grade E.g., Student A add to grade 3
- Expected to see roster where Student A is in grade 3, and Student B in grade 2.
The GradeSchool exercise exists in many other track language, and this this use case is not tested across other tracks.
Suggested to add more test case as follow:
// adding more test case
it ('adding more students to the same grade and move same student to different grade for promotions', () => {
gradeSchool.addStudent('Paul', 2)
gradeSchool.addStudent('Blair', 2)
gradeSchool.addStudent('James', 2)
gradeSchool.addStudent('Paul', 3)
const expectedDb = new Map(
Object.entries({ 2: ['Blair', 'James'], 3: ['Paul'] })
)
expect(gradeSchool.studentRoster()).toEqual(expectedDb)
})
Let me know how to get started on reviewing this issue?
Currently the test case does not test the above scenario.
The GradeSchool exercise exists in many other track language, and this this use case is not tested across other tracks.
Let me know how to get started on reviewing this issue?