Welcome to Gaia! :: View User's Journal | Gaia Journals

 
 

View User's Journal

i'm a cyborg..
Every entry is a dump of part of my mind. mmap()
Testing 101 [1]
So, i've got first, very preliminary Test Suite operational. I'm telling ya, this is quite a weirdo, terrible API, shitload of unnecessary code, etc. But works. Well, kinda. Read on for details.


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~





 
 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum