You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably the same problem, I got this when running test:
test/Course/StateSpec.hs:59:
1) Course.State.findM find 'c' in 'a'..'h'
expected: (Full 'c',3)
but got: (Full 'c',8)
I didn't find a right implementation of findM from google, my implementation use foldRight and it is definitely wrong. It cannot pass the test, and makes the isHappy implementation go into infinite loop.
While attempting to implement
findM
, I ran into problems with this test:I couldn't do it (could only get
(Empty, 16)
so I looked the answer here: https://github.com/tonymorris/course/blob/master/src/Course/State.hsThe answer as semantically the same as mine, though just as a sanity check I copied and pasted it, ran
stack test
and it still gave me an error.The text was updated successfully, but these errors were encountered: