Browse Source

test 11

remotes/origin/Lucas
Lucas Heil 11 months ago
parent
commit
3f9a597d6a
  1. 21
      src/test/c/test_sudoku.c

21
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
Loading…
Cancel
Save