You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
300 B
24 lines
300 B
#include "unittest.h" |
|
#include <math.h> |
|
|
|
TEST_FIRST(helloworld) |
|
{ |
|
} |
|
|
|
TEST3(hw2, helloworld, "Hello, World") |
|
{ |
|
} |
|
|
|
TEST(nonsense, hw2) |
|
{ |
|
if( !( sin( 0 ) != 0.0 )) |
|
_self->status = 1; |
|
} |
|
|
|
TEST(sense, nonsense) |
|
{ |
|
if( !( sin( 0 ) == 0.0 ) ) |
|
_self->status = 1; |
|
} |
|
|
|
IMPLEMENT_MAIN(sense, "self-testing")
|
|
|