asrob-uc3m / robotDevastation

A new-generation shooter with augmented reality and real robots. You can play online with other users with your PC, moving robots in championships and campaigns: all 24/7!
http://asrob-uc3m.github.io/workgroups/2017-05-28-robot-devastation.html
GNU Lesser General Public License v2.1
9 stars 4 forks source link

Add setup of preconditions in FSM test using previous states directly #46

Open David-Estevez opened 8 years ago

David-Estevez commented 8 years ago

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.

PeterBowman commented 6 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.

David-Estevez commented 6 years ago

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.