Unexpected behavior of assertEqual?
Moderator: General Moderators
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Re: Unexpected behavior of assertEqual?
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.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Unexpected behavior of assertEqual?
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 
Re: Unexpected behavior of assertEqual?
positive = true, negative or no value = false
makes more sense to me.
makes more sense to me.