Closed chshersh closed 5 years ago
I take this one. It seems like a good opportunity to play with hedgehog!
I've been working on this, and I have an interesting problem.
My test tripping x (forward bimap) (join . fmap (backward bimap))
for _Double
fails, because apparently
ghci> 0/0 == (0/0 :: Double)
False
What to do? :)
EDIT: I found a (ugly) way using isNaN
.
@jiegillet Trick with isNan
is used for Eq
instance for Value
as well:
I guess it's okay to violate semantic for NaN
in our case.
I would like to have
hedgehog
roundript tests for ourBiMap
because now they contain non-trivial logic.