Skip to content

Commit

Permalink
Add new test to GradeSchoolTests. No formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Grenkin1988 committed Jan 6, 2024
1 parent 5d01788 commit 6a0c771
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 6a0c771

Please sign in to comment.