Skip to content

Commit

Permalink
Add test case for Gotta Snatch'Em All
Browse files Browse the repository at this point in the history
Add a test case for totalCards using a singleton list as input since there it wasn't any before.

Discussed in issue exercism#684
  • Loading branch information
nico-or authored Apr 26, 2024
1 parent a90ce50 commit 896aa9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exercises/concept/gotta-snatch-em-all/tests/Tests.elm
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ tests =
\() ->
GottaSnatchEmAll.totalCards []
|> Expect.equal 0
, test "totalCards of empty collections" <|
\() ->
GottaSnatchEmAll.totalCards [ Set.fromList [ "Shazam", "Wigglycream" ] ]
|> Expect.equal 2
, test "totalCards of empty collections" <|
\() ->
GottaSnatchEmAll.totalCards [ Set.empty, Set.empty ]
Expand Down

0 comments on commit 896aa9d

Please sign in to comment.