Add test: losing after failing to escape

This commit is contained in:
Arne Keller 2020-03-14 13:45:54 +01:00
parent 6d4db9f12b
commit bbfd08f7be
3 changed files with 172 additions and 0 deletions

View File

@ -0,0 +1,83 @@
start wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,spider,spider,spider,spider,spider,snake,snake,snake,snake,snake,tiger,tiger,tiger,tiger,tiger,thunderstorm,wood,wood,wood,plastic,plastic,plastic,plastic,metal,metal
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
rollD4 1
draw
rollD4 1
draw
rollD4 2
draw
rollD4 3
draw
rollD4 4
draw
rollD6 2
draw
rollD6 3
draw
rollD6 4
draw
rollD6 5
draw
rollD6 6
draw
rollD8 4
draw
rollD8 5
draw
rollD8 6
draw
rollD8 7
draw
rollD8 8
draw
draw
draw
draw
draw
draw
draw
draw
draw
draw
build hangglider
rollD6 1
build?

View File

@ -0,0 +1,84 @@
OK
wood
wood
wood
wood
wood
wood
wood
wood
wood
wood
wood
wood
wood
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
spider
lose
spider
lose
spider
lose
spider
survived
spider
survived
snake
lose
snake
lose
snake
survived
snake
survived
snake
survived
tiger
lose
tiger
survived
tiger
survived
tiger
survived
tiger
survived
thunderstorm
wood
wood
wood
plastic
plastic
plastic
plastic
metal
metal
OK
lose
lost
<e

View File

@ -44,6 +44,11 @@ class MainTest {
cmpInOut("game_over_after_animal_input.txt", "game_over_after_animal_output.txt");
}
@Test
void gameOverAfterHangglider() throws IOException {
cmpInOut("game_over_after_hangglider_input.txt", "game_over_after_hangglider_output.txt");
}
@Test
void genericTest() throws IOException {
cmpInOut("generic_test_input.txt", "generic_test_output.txt");