diff --git a/src/test/c/test_sudoku.c b/src/test/c/test_sudoku.c index 0dfa07e..4cbee9c 100644 --- a/src/test/c/test_sudoku.c +++ b/src/test/c/test_sudoku.c @@ -193,5 +193,30 @@ void test_Level_Selection_2_2(){ printf("Unit test for Level_Selection() executed.\n\n"); } +//8 + +void test_Player_actions_for_playing_print_and_solve(){ + test_help = true; + selected_difficulty = 1; + selected_level = 1; + + int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y] = { + {4, 7, 3, 6, 2, 1, 8, 5, 9}, + {6, 8, 5, 9, 7, 4, 1, 3, 2}, + {9, 2, 1, 5, 3, 8, 7, 6, 4}, + {7, 6, 9, 3, 5, 2, 4, 8, 1}, + {8, 5, 4, 1, 9, 7, 6, 2, 3}, + {1, 3, 2, 4, 8, 6, 9, 7, 5}, + {2, 9, 7, 8, 1, 5, 3, 4, 6}, + {3, 4, 8, 2, 6, 9, 5, 1, 7}, + {5, 1, 6, 7, 4, 3, 2, 9, 8}}; + + Player_actions_for_playing(Sudoku_grid); + TEST_ASSERT_TRUE(check_solved); + printf("Unit test for Player_actions_for_playing() executed.\n\n"); +} + + + #endif // TEST