From 22446ea8aaf4acc3c451c5c17a5476fedb37b8c2 Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Thu, 12 Mar 2020 22:23:27 +0100 Subject: [PATCH] Add test for lost after animal encounter --- game_over_after_animal_input.txt | 81 ++++++++++++++++++ game_over_after_animal_output.txt | 82 +++++++++++++++++++ src/edu/kit/informatik/cardgame/MainTest.java | 5 ++ 3 files changed, 168 insertions(+) create mode 100644 game_over_after_animal_input.txt create mode 100644 game_over_after_animal_output.txt diff --git a/game_over_after_animal_input.txt b/game_over_after_animal_input.txt new file mode 100644 index 0000000..4906fb2 --- /dev/null +++ b/game_over_after_animal_input.txt @@ -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 diff --git a/game_over_after_animal_output.txt b/game_over_after_animal_output.txt new file mode 100644 index 0000000..9c512c1 --- /dev/null +++ b/game_over_after_animal_output.txt @@ -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 diff --git a/src/edu/kit/informatik/cardgame/MainTest.java b/src/edu/kit/informatik/cardgame/MainTest.java index 75a1957..3bb06bc 100644 --- a/src/edu/kit/informatik/cardgame/MainTest.java +++ b/src/edu/kit/informatik/cardgame/MainTest.java @@ -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");