From 3f9a597d6aa37796e42e9f1e05d12175140abf55 Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:47:22 +0100 Subject: [PATCH] test 11 --- src/test/c/test_sudoku.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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