614 B
614 B
150. Unit tests
-
Add a new unit test
TEST_CASE
forisWall
. To testisWall
we need to add it theBoard.hpp
file because it should be accessible within thetestBoard.cpp
file. Check for a couple of cases, similarly to theisWalkableForPacMan
test. Remember since the unit tests are not inside of thepacman
namespace, we need to appendpacman::
to the function calls. -
Compile the project and run the unit tests. They should all be passing and if they are not then check which unit test is failing and figure out what was causing the issue. If all goes well you can run the game.