4 ms·
"Someone at Apple forgot a test case feeding text with File:/// to DataDetectors." There's obviously and blatantly a combinatorial explosion of possible inputs
by martinced 14y ago
"Someone at Apple forgot a test case feeding text with File:/// to DataDetectors."
There's obviously and blatantly a combinatorial explosion of possible inputs into a textbox so it's physically impossible ("physically" as in: "there aren't enough atoms in the universe to build a machine able to handle this) to test all the possible inputs.
By your logic when the terrible endless loop in the Java floating-point parsing library (you could stuck any JVM by trying to parse: 2.2250738585072012e-308) was discovered, it's because:
"Someone forgot to write a test case trying to parse 2.2250738585072012e-308"
Yeah. Sure.
- iSnow 14y agoI am not sure why you sound so angry, but let me try to explain: Every time you build in an assertion like that you should have a test case to prove the program handles it like you intended it to. And concerning the Java FP bug: yes, someone forgot to test the corner cases of the Java FP range. You don't need to test every FP number out there, but you absolutely need the highest, lowest, highest+1, lowest+1, zero, +/-infinity, division by zero and if you are good highest +0, lowest + 0 and some conversions from and to long, int etc.
- deleted 14y ago[deleted]