3 ms·
The floating point comparison bug is nightmare fuel. I could look at that for years and never spot the mistake.
by jnwatson 2mo ago
The floating point comparison bug is nightmare fuel. I could look at that for years and never spot the mistake.
- bee_rider 2mo agoOn the bright side it could probably run for years without hitting the mistake as well. But it is nice to get it out of there.
- wffurr 2mo agoFuzzers are brilliant at this and produce all kinds of insane floating point inputs.
- dwattttt 2mo agoIf you're only taking one float as input, we've long been at a point where you can just test them all: https://randomascii.wordpress.com/2014/01/27/theres-only-four-billion-floatsso-test-them-all/ https://randomascii.wordpress.com/2014/01/27/theres-only-fou...
- appplication 2mo agoTDD haters in shambles with this news