Menu

#21 problem with assertEquals

open
5
2005-03-07
2005-03-07
Jos
No

If you add a third parameter to assertEquals, you can
hang the unit testing framework.

I'm currently using it with the pause()/resume()
functions for async code testing.

i'm in a async callback function, so i've already
called pause(). I mistakenly called
assertEquals("blah", x.value, true). It should only
take 2 params, but the complier didn't complain about
the extra argument, and, when compiled, the program
hung at that assertion.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.