Is code duplication allowed in this instance?
ricli85 at gmail.com
Fri Jul 3 13:29:44 CEST 2009
> Whoever it so happens to verify the
> output from the method I have to employ the same algorithm within the
> method to do the verification since there is no way I can determine
> the output before hand.
Can you clarify this scenario a bit?
If you are performing black-box testing I don't see why you need to
use the same algorithm in the test code. But maybe your case is
special. On the other hand you can not perform black-box testing if
the output is not known for a given input.
More information about the Python-list