From 6135774016bce8ece387ddc5fd19a48378432f09 Mon Sep 17 00:00:00 2001 From: Psyyringe Date: Sun, 27 Dec 2009 00:20:42 +0000 Subject: [PATCH] Psyringe - added two test scripts for cycling, and a bug demonstartion script for a conflict between cycling and casting instants/sorceries. --- projects/mtg/bin/Res/test/_tests.txt | 2 ++ projects/mtg/bin/Res/test/bloated_toad1.txt | 19 +++++++++++++++ projects/mtg/bin/Res/test/bloated_toad2.txt | 23 +++++++++++++++++++ .../mtg/bin/Res/test/bugs/iron_will_i270.txt | 20 ++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 projects/mtg/bin/Res/test/bloated_toad1.txt create mode 100644 projects/mtg/bin/Res/test/bloated_toad2.txt create mode 100644 projects/mtg/bin/Res/test/bugs/iron_will_i270.txt diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index 0d4f0655e..67180fd95 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -112,6 +112,8 @@ benalish_knight.txt black_vise.txt blessed_wine.txt blinking_spirit.txt +bloated_toad1.txt +bloated_toad2.txt bloodfire_colossus.txt bloodhall_ooze.txt body_double.txt diff --git a/projects/mtg/bin/Res/test/bloated_toad1.txt b/projects/mtg/bin/Res/test/bloated_toad1.txt new file mode 100644 index 000000000..bfc2770c2 --- /dev/null +++ b/projects/mtg/bin/Res/test/bloated_toad1.txt @@ -0,0 +1,19 @@ +#NAME:Bloated Toad 1 +#DESC:Verifies that the card can be +#DESC:cast correctly after choosing +#DESC:to do so (instead of cycling) +[INIT] +firstmain +[PLAYER1] +hand:Bloated Toad +manapool:{2}{G} +[PLAYER2] +[DO] +Bloated Toad +choice 0 +[ASSERT] +firstmain +[PLAYER1] +inplay:Bloated Toad +[PLAYER2] +[END] diff --git a/projects/mtg/bin/Res/test/bloated_toad2.txt b/projects/mtg/bin/Res/test/bloated_toad2.txt new file mode 100644 index 000000000..552d7e10f --- /dev/null +++ b/projects/mtg/bin/Res/test/bloated_toad2.txt @@ -0,0 +1,23 @@ +#NAME:Bloated Toad 2 +#DESC:Verifies that the card can be +#DESC:cycled even though the manapool +#DESC:would have been sufficient to +#DESC:cast it as well. +[INIT] +firstmain +[PLAYER1] +hand:Bloated Toad +manapool:{G}{G}{G} +library:Forest +[PLAYER2] +[DO] +Bloated Toad +choice 1 +[ASSERT] +firstmain +[PLAYER1] +graveyard:Bloated Toad +hand:Forest +manapool:{G} +[PLAYER2] +[END] diff --git a/projects/mtg/bin/Res/test/bugs/iron_will_i270.txt b/projects/mtg/bin/Res/test/bugs/iron_will_i270.txt new file mode 100644 index 000000000..ada30b941 --- /dev/null +++ b/projects/mtg/bin/Res/test/bugs/iron_will_i270.txt @@ -0,0 +1,20 @@ +#NAME: Iron Will +#DESC: Bug: If a non-permanent with cycling +#DESC: is cast, and its cycling cost could +#DESC: be paid as well, then trying to cast +#DESC: results in a "Cancel" menu popping up, +#DESC: casting the spell is not possible. +#DESC: See http://code.google.com/p/wagic/issues/detail?id=270 +[INIT] +firstmain +[PLAYER1] +inplay:Suntail Hawk +hand:Iron Will +library:Plains +manapool:{W}{W} +[PLAYER2] +[DO] +Iron Will +choice 0 +Suntail Hawk +human