diff --git a/src/test/c/test_sudoku.c b/src/test/c/test_sudoku.c index c5abf7f..557f85d 100644 --- a/src/test/c/test_sudoku.c +++ b/src/test/c/test_sudoku.c @@ -260,6 +260,27 @@ void test_giving_hints_to_player(){ } +// 10 + +void test_write_userinput_into_Sudoku_9_into_empty(){ + test_help = true; + test_row_e = 1; + test_col_e = 1; + test_num = 9; + int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y]; + + + write_userinput_into_Sudoku(Sudoku_grid); + + TEST_ASSERT_EQUAL_INT_MESSAGE(test_num, Sudoku_grid[test_row_e -1][test_col_e -1], "Checking if number input is correct"); + + + + printf("Unit test for write_userinput_into_Sudoku() executed.\n\n"); +} + + + #endif // TEST