On 13.04.2011 02:07, Antoine Pitrou wrote: > On Tue, 12 Apr 2011 19:50:34 -0400 > Tres Seaver <tseaver at palladion.com> wrote: >> Trying to accelerate existing code which doesn't have the coverage is >> insane: how can you know that the accelerator doesn't subtly change the >> semantics without tests? > > Well, why do you think tests guarantee that the semantics are the same? > Tests are not a magic bullet. "Covering" a code path doesn't ensure > that every possible behaviour is accounted for. def foo(a, b): if condition(a): bar = b do_something_with(bar) This has 100% coverage if "condition" is usually true :) Georg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4