From c9fa4676eb03b894eb1132cb123b4644c03a6f0c Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:44:13 +0100 Subject: [PATCH] test 2 --- src/test/c/test_sudoku.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/test/c/test_sudoku.c b/src/test/c/test_sudoku.c index 59be98f..e58d373 100644 --- a/src/test/c/test_sudoku.c +++ b/src/test/c/test_sudoku.c @@ -18,5 +18,32 @@ void tearDown(void) { } +//1 + +// Unit test for Level_Pool() function +// Call the Level_Pool() function, prints 3 fixed lines and "Available levels for Difficulty " +void test_Level_Pool_0() { + selected_difficulty = 0; + Level_Pool(selected_difficulty); + //TEST_PASS(); + printf("Unit test for Level_Pool_0() executed.\n"); +} + +void test_Level_Pool_5() { + selected_difficulty = 5; + Level_Pool(selected_difficulty); + //TEST_PASS(); + printf("Unit test for Level_Pool_5() executed.\n"); +} + +void test_Level_Pool_neg_1() { + selected_difficulty = -1; + Level_Pool(selected_difficulty); + //TEST_PASS(); + printf("Unit test for Level_Pool_-1() executed.\n\n"); +} + + + #endif // TEST