From 1e95394391d33d80abb96a7dfff05f6a1fe869cb Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Wed, 11 Mar 2020 11:11:30 +0100 Subject: [PATCH] Add generic waf2 test 1 by usosx --- generic_waf2_test_input.txt | 124 ++++++++++++ generic_waf2_test_output.txt | 181 ++++++++++++++++++ src/edu/kit/informatik/cardgame/MainTest.java | 5 + 3 files changed, 310 insertions(+) create mode 100644 generic_waf2_test_input.txt create mode 100644 generic_waf2_test_output.txt diff --git a/generic_waf2_test_input.txt b/generic_waf2_test_input.txt new file mode 100644 index 0000000..28313a0 --- /dev/null +++ b/generic_waf2_test_input.txt @@ -0,0 +1,124 @@ +draw +list-resources +build axe +build +list-buildings +build? +rollD4 4 +rollD6 4 +rollD8 4 +reset +start wod,spider,snake,tiger,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,spider,spider,spider,spider,snake,snake,snake,snake,tiger,tiger,tiger,tiger,thunderstorm +start wood,spider,snake,tiger,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,spider,spider,spider,spider,snake,snake,snake,snake,tiger,tiger,tiger,tiger,thunderstorm +list-resources +draw +list-resources +build axe +build +list-buildings +build? +rollD4 4 +rollD6 4 +rollD8 4 +start wood,spider,snake,tiger,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,wood,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,metal,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,plastic,spider,spider,spider,spider,snake,snake,snake,snake,tiger,tiger,tiger,tiger,thunderstorm +reset +list-resources +draw +list-resources +draw +draw +list-resources +build axe +build +list-buildings +build? +rollD6 4 +rollD8 8 +rollD4 4 +draw +draw +list-resources +build axe +build +list-buildings +build? +rollD4 4 +rollD8 8 +rollD6 6 +draw +draw +list-resources +build axe +build +list-buildings +build? +rollD4 4 +rollD6 6 +rollD8 8 +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 +list-resources +list-buildings +build? +build fireplace +build? +draw +build club +build? +rollD4 3 +build club +draw +build axe +build? +rollD4 2 +build axe +draw +build axe +build? +rollD4 1 +quit diff --git a/generic_waf2_test_output.txt b/generic_waf2_test_output.txt new file mode 100644 index 0000000..662f559 --- /dev/null +++ b/generic_waf2_test_output.txt @@ -0,0 +1,181 @@ +Error, no card to draw exists +Error, can not get resources: game not started +Error, could not build item +Error, unknown command +Error, can not get buildings: game not started +Error, can not get buildable items: game not started +Error, not expecting dice roll +Error, not expecting dice roll +Error, not expecting dice roll +Error, can not reset a game that is not started! +Error, invalid start argument value(s) +OK +EMPTY +wood +wood +Error, could not build item +Error, unknown command +EMPTY +EMPTY +Error, not expecting dice roll +Error, not expecting dice roll +Error, not expecting dice roll +Error, could not start game +OK +EMPTY +wood +wood +spider +Error, roll dice, please +wood +Error, could not build item +Error, unknown command +EMPTY +Error, can not get buildable items: awaiting dice roll +Error, unexpected dice size +Error, unexpected dice size +survived +snake +Error, roll dice, please +wood +Error, could not build item +Error, unknown command +EMPTY +Error, can not get buildable items: awaiting dice roll +Error, unexpected dice size +Error, unexpected dice size +survived +tiger +Error, roll dice, please +wood +Error, could not build item +Error, unknown command +EMPTY +Error, can not get buildable items: awaiting dice roll +Error, unexpected dice size +Error, unexpected dice size +survived +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +wood +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +metal +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +plastic +EMPTY +axe +club +fireplace +hangglider +sailingraft +shack +OK +axe +ballon +club +hangglider +sailingraft +shack +steamboat +spider +