Browse Source

test 11

main^2
Lucas Heil 11 months ago
committed by Peter Wiebe
parent
commit
49f77d78e1
  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