Skip to content

Commit

Permalink
Add new test for grade-school exersice (#1204)
Browse files Browse the repository at this point in the history
* Add new test to GradeSchoolTests

* Revert "Add new test to GradeSchoolTests"

This reverts commit e6d6aad.

* Add new test to GradeSchoolTests. No formatting
  • Loading branch information
Grenkin1988 authored Jan 9, 2024
1 parent 2b01427 commit 2226b0a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions exercises/practice/grade-school/GradeSchoolTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,15 @@ let ``Students are sorted by name in a grade`` () =
|> add "Jeff" 1
grade 5 school |> should equal ["Bradley"; "Franklin"]

[<Fact(Skip = "Remove this Skip property to run this test")>]
let ``Students are sorted by grades and then by name in the roster even when school was not sorted``() =
let school =
seq {
1, [ "Anna"; "Charlie"; "Barb" ]
2, [ "Peter"; "Zoe"; "Alex" ]
3, [ "Jim" ]
}
|> Map.ofSeq
roster school
|> should equal [ "Anna"; "Barb"; "Charlie"; "Alex"; "Peter"; "Zoe"; "Jim" ]

0 comments on commit 2226b0a

Please sign in to comment.