Say, I have a boolean function which returns a true or false without any
bool SomeFunction( void )
int size = 200;
if( size < 0 )
if( size > 200 )
if( size == 200 )
For the above function, I have 3 paths or 3 conditions. How could I test the
above SomeFunction() using CUnit assertions? Please help.
as far as I can see the function has just one path since size is fixed to 200. a compiler would throw away the rest.
thats why there is no need to test this function in different ways, just
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.