Open gabriel-lau opened 4 years ago
Unit tests done for displaying main menu.
Scenario | Description | Test Values | Expected Outcome | Actual Outcome | Pass/Fail |
---|---|---|---|---|---|
1 | test_display_menu: Test whether menu is displaying correctly. | display_menu() | "MAIN MENU\n", "=========\n", "[1] Read and load maze from file\n", "[2] View maze\n", "[3] Play maze game\n", "[4] Configure current maze\n\n", "[0] Exit Maze\n" | Same as expected | Pass |
2 | test_looping_menu_exit: Test whether while loop ends when option 0 is selected. | Enter your option: 0 | main([]) == False | Same as expected | Pass |
Test coverage achieved for displaying menu. Some parts such as error messages (print statements) when an option is selected were not tested using automated testing.
Test cases for #15 and the results