| ▲ | mtklein 4 hours ago | |
My preference in tests is a little different than just using IEEE 754 ==,
which both handles NaNs sensibly (all NaNs are equivalent) and won't warn about using == on floats. I find it also easy to remember how to write when starting a new project. | ||