[pypy-dev] utest conversion tool question
hpk at trillke.net
Wed Jun 30 21:05:05 CEST 2004
[Armin Rigo Wed, Jun 30, 2004 at 07:35:14PM +0100]
> self.assertEquals(f(x) +
> g(x) == q(x),
> should, intuitively, get translated to...
> assert (f(x) +
> g(x) == q(x)), (
Aehem, which kind of intuition are you invoking? I guess intuitive as seen
from an algorithm but certainly not nice for a human eye, right?
(apart from the fact, that the first '==' probably should be a comma).
So i would suggest
assert f(x) + g(x) == q(x), 'Message'
as the desired output unless this is NP-complete to compute :-)
More information about the Pypy-dev