Browse Source

test 2

main^2
Lucas Heil 11 months ago
committed by Peter Wiebe
parent
commit
2d49972656
  1. 27
      src/test/c/test_sudoku.c

27
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 <selected 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 #endif // TEST
Loading…
Cancel
Save