K
Keith Thompson
Richard Heathfield said:Keith Thompson said:
I understand what you're saying, but I'm struggling to understand why you're
saying it. Yes, incorrect results can be arbitrarily subtle and difficult
to detect. Does that mean we're allowed to produce incorrect results, or
not?
By definition, incorrect results are ones that we're not allowed to
produce.
[...]If we're /not/ allowed to produce incorrect results, then our testing
had better be able to spot arbitrarily subtle output errors.
Yes, it had better -- but in real life, testing cannot always catch
100% of all errors. If perfect testing were possible, we could
probably apply the same techniques to write perfect code and eliminate
the need for testing in the first place. And a number of space probes
would have been a lot more successful.
Obviously we should try to avoid errors. But it can be useful to
arrange for any errors that slip through to manifest themselves in as
unsubtle a matter as possible.
Sometimes. YMMV. Yadda yadda.