From 57a26b458386f526a6c33bc23e7ded3c7b8d2890 Mon Sep 17 00:00:00 2001 From: "Yuriy A. Apollov" Date: Tue, 18 Nov 2014 06:58:38 +0300 Subject: [PATCH] Add test for buyback case. --- projects/mtg/bin/Res/test/buyback.txt | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/mtg/bin/Res/test/buyback.txt diff --git a/projects/mtg/bin/Res/test/buyback.txt b/projects/mtg/bin/Res/test/buyback.txt new file mode 100644 index 000000000..ca655e5d5 --- /dev/null +++ b/projects/mtg/bin/Res/test/buyback.txt @@ -0,0 +1,30 @@ +# Cast card once with buyback and second time without. +# The card must be in the graveyard, not in the hand +[INIT] +FIRSTMAIN + +[PLAYER1] +hand:Capsize +manapool:{5}{U}{U}{U}{U} + +[PLAYER2] +inplay:Swamp,Island + +[DO] +Capsize +# pay buyback +choice 1 +Swamp +Capsize +Island + +[ASSERT] +FIRSTMAIN + +[PLAYER1] +graveyard:Capsize + +[PLAYER2] +hand:Swamp,Island + +[END]