|
|
@ -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 |