Closed Anton-4 closed 4 years ago
You can compare for equality against the Expectation.pass
value (can't remember exactly where it lives)
Thanks, I tried this before but it did not work when using a case expression, it does work with an if expression though.
I'm trying to write versions of
atMost
andatLeast
that I can use with Floats that may be very close to each other. I have written the following code:It results in the following error:
Because
Expect.Expectation
is a type alias I cannot importPass
usingExpectation(..)
. I do not know how I can work around this issue. I am still quite new to elm so I may have overlooked some simple fix.