moocfi / haskell-mooc

Haskell MOOC University of Helsinki
Other
313 stars 446 forks source link

Set 9a exercise 4: add examples as testcases #101

Closed ARomppainen closed 6 months ago

ARomppainen commented 6 months ago

Change

Add the given examples as testcases for Set9a exercise 4.

Context

I was hasty reading the exercise and thought that the function should return the first repetition (not in a row). For example, my implementation of repeated [1,2,1,2,3,3] returned Just 1 instead of Just 3. This faulty implementation passed through the current test suite.

opqdonut commented 6 months ago

thanks a lot!