Add test case for lose?(false , false)#1643
Conversation
added missing test case refute Rules.lose?(false, false) to task 3 tests for Concept Pacman Rules
|
This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested. If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos. For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping |
|
Thank you for contributing to Based on the files changed in this PR, it would be good to pay attention to the following details when reviewing the PR:
Automated comment created by PR Commenter 🤖. |
|
Hi! The reason we did not add a test for "not touching a ghost without a power pellet active" is that having a power pellet active is irrelevant for the losing condition if pacman is not touching any ghosts. A single test for "don't lose if not touching a ghost" should have been enough in our opinion. Did you find yourself actually needing this test? Did you manage to write a solution that was incorrect, but passing all the tests? |
|
yeah this passes all the tests for task 3 but will fail if you try and use the function in task 4 test 11 but everything else will pass |
added missing test case refute Rules.lose?(false, false) to task 3 tests for Concept Pacman Rules
Resolves #1642