Skip to content

Commit

Permalink
Add test case for Gotta Snatch'Em All (#686)
Browse files Browse the repository at this point in the history
* Add test case for Gotta Snatch'Em All

Add a test case for totalCards using a singleton list as input since there it wasn't any before.

Discussed in issue #684

* fix test description
  • Loading branch information
nico-or authored May 3, 2024
1 parent a90ce50 commit ea5cccf
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 single collection input" <|
\() ->
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 ea5cccf

Please sign in to comment.