|
|
@ -91,6 +91,29 @@ void test_create_playing_field_level_medium_two() { |
|
|
|
printf("Unit test for create_playing_field() executed.\n\n"); |
|
|
|
} |
|
|
|
|
|
|
|
//4 |
|
|
|
|
|
|
|
// Unit test for printGrid() function |
|
|
|
void test_printGrid() { |
|
|
|
int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y] = { |
|
|
|
{5, 3, 0, 0, 7, 0, 0, 0, 0}, |
|
|
|
{6, 0, 0, 1, 9, 5, 0, 0, 0}, |
|
|
|
{0, 9, 8, 0, 0, 0, 0, 6, 0}, |
|
|
|
{8, 0, 0, 0, 6, 0, 0, 0, 3}, |
|
|
|
{4, 0, 0, 8, 0, 3, 0, 0, 1}, |
|
|
|
{7, 0, 0, 0, 2, 0, 0, 0, 6}, |
|
|
|
{0, 6, 0, 0, 0, 0, 2, 8, 0}, |
|
|
|
{0, 0, 0, 4, 1, 9, 0, 0, 5}, |
|
|
|
{0, 0, 0, 0, 8, 0, 0, 7, 9} |
|
|
|
}; |
|
|
|
|
|
|
|
printf("Sudoku Grid:\n"); |
|
|
|
printGrid(Sudoku_grid); |
|
|
|
//TEST_PASS(); |
|
|
|
printf("Unit test for printGrid() executed.\n\n"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|