Add allow_subnormal kwarg to floats()
#3155
Labels
enhancement
it's not broken, but we want it to be better
allow_subnormal kwarg to floats()
#3155
Currently
floats()generates subnormal floats, which would not be desired when testing "flush-to-zero" libraries (the one concrete use case being CuPy in data-apis/array-api-tests#42). The subnormals generated could be filtered out, but it would be nice if there was first-party support from Hypothesis, especially as how tricky such filtering could be for an end user.I can take a look at doing this myself tomorrow, but mind I've never touched
floats()before heh. I guess I'd need to figure out how to calculate the normal-subnormal boundary with width via the IEEE 754 standard.The text was updated successfully, but these errors were encountered: