Add test for lost after animal encounter

This commit is contained in:
Arne Keller 2020-03-12 22:23:27 +01:00
parent 5535692596
commit 22446ea8aa
3 changed files with 168 additions and 0 deletions

View File

@ -0,0 +1,81 @@
start thunderstorm,wood,wood,wood,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,plastic,plastic,plastic,plastic,metal,metal,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
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
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 1
list-resources

View File

@ -0,0 +1,82 @@
OK
thunderstorm
wood
wood
wood
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
plastic
plastic
plastic
plastic
metal
metal
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
lose
lost
Error, can not get resources: game not started

View File

@ -39,6 +39,11 @@ class MainTest {
cmpInOut("game_over_no_materials_input.txt", "game_over_no_materials_output.txt"); cmpInOut("game_over_no_materials_input.txt", "game_over_no_materials_output.txt");
} }
@Test
void gameOverAfterAnimal() throws IOException {
cmpInOut("game_over_after_animal_input.txt", "game_over_after_animal_output.txt");
}
@Test @Test
void genericTest() throws IOException { void genericTest() throws IOException {
cmpInOut("generic_test_input.txt", "generic_test_output.txt"); cmpInOut("generic_test_input.txt", "generic_test_output.txt");