Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
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