Open David-Estevez opened 8 years ago
@David-Estevez could you take a look here and check whether this issue has been resolved since then? The snapshot of the unit tests directory at the time of opening this is: https://github.com/asrob-uc3m/robotDevastation/tree/8eb14b2/test.
Checking testDeadState.cpp
, lines 139-146:
https://github.com/asrob-uc3m/robotDevastation/blob/8eb14b2b3518e34ea7b301592b90a10c933879b1/test/testDeadState.cpp#L139-L147
it seems that this has not been solved yet.
As it is done in testGameState, all preconditions can be setup by using previous states code directly. This is error-proof, as the previous states are also covered by unit tests.
This is done in testGameState this way, and could be done in testDeadState in a similar way.