|
@ -253,6 +253,20 @@ void test_calculate_mines_WidthOne(void) |
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_calculate_mines_NormalCase(void) |
|
|
|
|
|
{ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
int height = 5; |
|
|
|
|
|
int width = 5; |
|
|
|
|
|
int expected = 6; |
|
|
|
|
|
|
|
|
|
|
|
/* act */ |
|
|
|
|
|
int result = calculate_mines(height, width); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void test_calculate_mines_HeightOne(void) |
|
|
void test_calculate_mines_HeightOne(void) |
|
|
{ |
|
|
{ |
|
|
/* arrange */ |
|
|
/* arrange */ |
|
|