Add test cases to excercise Gotta Snatch'Em All #684
Labels
good first issue
Good task for first-time contributors, has a special meaning for GitHub
x:action/improve
Improve existing functionality/content
x:size/small
Small amount of work
In part 7, the instructions is "Implement totalCards, which takes a list of collections and returns the total number of different cards in the all of the collections."
The function signature is:
totalCards : List (Collection) -> Int
But reading the test cases, there is no cover for inputs of singleton Lists.
I think adding these inputs should suffice:
[Set.empty]
[Set.singleton "Shazam"]
[Set.fromList [ "Shazam", "Wigglycream" ]]
On the other hand, since this exercise is intended to teach Sets, I don't know if focusing on the proper handling of the List input is appropriate.
The text was updated successfully, but these errors were encountered: