UMDLARS / one_night_in_sf

A story game demonstrating why physical security is important and complex!
1 stars 2 forks source link

can't finish the game with the test #217

Closed pahp closed 4 months ago

pahp commented 4 months ago

I added a complete walkthrough (of all scored items) with this commit, but when I add > s to leave the Lobby back to the elevator to win, I get this outcome:

untitledHeistGame.out:2790:*** Exception: Timed out awaiting output
make: *** [Makefile:65: untitledHeistGame.out] Error 1

I suspect maybe the testing script doesn't know what to do when the game ends?

The current test case just ends in the Lobby with all scored items.

spacehobo commented 4 months ago

https://github.com/erkyrath/plotex/blob/master/regtest.py#L552-L558 ← Looks like it's looking for a > prompt explicitly, and when you win you get a prompt ending in ?...

pahp commented 4 months ago

I took @spacehobo 's idea and had it run score and check for 131.