mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final2.git
synced 2024-11-08 09:50:38 +00:00
Add test for lost after animal encounter
This commit is contained in:
parent
5535692596
commit
22446ea8aa
81
game_over_after_animal_input.txt
Normal file
81
game_over_after_animal_input.txt
Normal 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
|
82
game_over_after_animal_output.txt
Normal file
82
game_over_after_animal_output.txt
Normal 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
|
@ -39,6 +39,11 @@ class MainTest {
|
||||
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
|
||||
void genericTest() throws IOException {
|
||||
cmpInOut("generic_test_input.txt", "generic_test_output.txt");
|
||||
|
Loading…
Reference in New Issue
Block a user