|
@ -353,6 +353,20 @@ void test_calculate_mines_HeightZero(void) |
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_calculate_mines_HeightWidthNumber(void) |
|
|
|
|
|
{ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
int height = 4; |
|
|
|
|
|
int width = 6; |
|
|
|
|
|
int expected = 6; |
|
|
|
|
|
|
|
|
|
|
|
/* act */ |
|
|
|
|
|
int result = calculate_mines(height, width); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |
|
|
|
|
|
|
|
|
|
|
|
|
|
|