|
|
@ -564,7 +564,18 @@ void test_compare_aLessThanB(void) |
|
|
|
TEST_ASSERT_EQUAL_INT(-1, result); |
|
|
|
} |
|
|
|
|
|
|
|
void test_compare_aGreaterThanB(void) |
|
|
|
{ |
|
|
|
/* arrange */ |
|
|
|
int a = 10; |
|
|
|
int b = 7; |
|
|
|
|
|
|
|
/* act */ |
|
|
|
int result = compare(a, b); |
|
|
|
|
|
|
|
/* assert */ |
|
|
|
TEST_ASSERT_EQUAL_INT(1, result); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|