Page 2 of 2

Re: Unexpected behavior of assertEqual?

Posted: Sun Jul 13, 2008 11:37 am
by Ollie Saunders
lol. Well it has to be either true or false I guess. It's not like PHP is allowed to go "can't convert boolean to integer". Funny though.

Re: Unexpected behavior of assertEqual?

Posted: Thu Jul 17, 2008 9:34 pm
by Chris Corbyn
I would think FALSE == 0 should therefore not be FALSE < -1, no? :) Anything less than -1 is a negative number. Negative numbers have a value, therefore they are TRUE. Seems wrong to me :crazy:

Re: Unexpected behavior of assertEqual?

Posted: Fri Jul 25, 2008 8:18 am
by Jenk
positive = true, negative or no value = false

makes more sense to me. :)