| 159 | } |
| 160 | |
| 161 | static void testMenu(bool success) { |
| 162 | auto& ch = *Main_Data::game_player; |
| 163 | ch.SetX(8); |
| 164 | ch.SetY(8); |
| 165 | |
| 166 | Input::ResetKeys(); |
| 167 | |
| 168 | Input::triggered[Input::CANCEL] = true; |
| 169 | |
| 170 | ForceUpdate(ch); |
| 171 | testPos(ch, 8, 8, Down, Down, 0, false, 1, 0, 0, false, success, 0, false, false); |
| 172 | |
| 173 | // FIXME: Test conditions which disable menu calling |
| 174 | } |
| 175 | |
| 176 | TEST_CASE("CallMenu") { |
| 177 | const MockGame mg(map_id); |
no test coverage detected