Is there a way to get a variant of gen/any
that does not return NaN
?
My use case is that I want to do an operation on two different types of datastructures and verify that the two results are equal. The problem is that, when the outputs are structurally equal but both have NaN
deeply nested inside of them, =
will return false.
So, the generator can't just not return NaN, I would need it to not return NaN at any level of nesting.
man I needed that for test.check itself
I wonder what I did
looks like I used a custom recursive generator
It was oriented at edn which afaik can't handle infinities either
But NaN is pretty poisonous
You could add something to test.chuck if you'd find that useful