Oh oh. i've got a function that should output 4, and asserted it returns 4.
assertEq( RESULT, 4 ) )
Error: 400 is not equal 4.
Well, so far so good, my Suite found a bug in code. Debug, patch, test. Error: 4 not equal 4.
Wtf?Four minutes later, i got it: 4 (float) (as returned) !== 4 ( integer ). Well, but 4 ( float) === 4.0, ok.
Next step:
assertEq( RESULT, 2 )
( for other result )Error: 2 (float) !== 2 ( float )
Um, wtf? (haven't solved this yet. May have something to do with round-off errors or other crap).
Testing is fun~
Foo - bar - n~