Psyringe - added test scripts for issue 188, issue 192, issue 193. Removed Sonic Burst and Acceptable Losses (as oer wololo's forum post), both cards could be cast from an otherwise empty hand without discarding a card.
This commit is contained in:
8
projects/mtg/bin/Res/test/bugs/_tests_for_i188.txt
Normal file
8
projects/mtg/bin/Res/test/bugs/_tests_for_i188.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
bugs/cursed_land1_i188.txt
|
||||
bugs/cursed_land2_i188.txt
|
||||
bugs/cursed_land3_i188.txt
|
||||
bugs/cursed_land4_i188.txt
|
||||
bugs/pillory_of_the_sleepless1_i188.txt
|
||||
bugs/pillory_of_the_sleepless2_i188.txt
|
||||
bugs/pillory_of_the_sleepless3_i188.txt
|
||||
bugs/pillory_of_the_sleepless4_i188.txt
|
||||
26
projects/mtg/bin/Res/test/bugs/control_change_untap_i192.txt
Normal file
26
projects/mtg/bin/Res/test/bugs/control_change_untap_i192.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
#NAME: Control change untap
|
||||
#DESC: Bug: After taking control of a tapped
|
||||
#DESC: enemy creature, the creature is displayed
|
||||
#DESC: as untapped (although the game correctly
|
||||
#DESC: treats it as tapped otherwise).
|
||||
#DESC: The script taps an enemy creature and
|
||||
#DESC: gives you control over it. It's displayed
|
||||
#DESC: as untapped - but it shoes up as a valid
|
||||
#DESC: target for Assassinate, so it must actually
|
||||
#DESC: be tapped. Dont cast Assasinate, instead
|
||||
#DESC: cast Twitch and untap the creature. The
|
||||
#DESC: display doesn't change, but Assassinate
|
||||
#DESC: cannot target it any more. Conclusion: The
|
||||
#DESC: game state is correct, but the display not.
|
||||
firstmain
|
||||
[PLAYER1]
|
||||
hand:Control Magic,Enervate,Assassinate,Twitch
|
||||
manapool:{U}{U}{U}{U}{U}{U}{U}{U}{U}{U}{B}{B}{B}
|
||||
[PLAYER2]
|
||||
inplay:Grizzly Bears
|
||||
[DO]
|
||||
Enervate
|
||||
Grizzly Bears
|
||||
Control Magic
|
||||
Grizzly Bears
|
||||
human
|
||||
26
projects/mtg/bin/Res/test/bugs/cursed_land1_i188.txt
Normal file
26
projects/mtg/bin/Res/test/bugs/cursed_land1_i188.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
#NAME: Cursed Land 1
|
||||
#DESC: Tests whether Cursed Land triggers correctly.
|
||||
#DESC: First part: Cast on an opponent's land.
|
||||
#DESC: Verifies that Cursed Land does
|
||||
#DESC: damage to correct player.
|
||||
[INIT]
|
||||
secondmain
|
||||
[PLAYER1]
|
||||
hand:Cursed Land
|
||||
manapool:{B}{B}{B}{B}
|
||||
[PLAYER2]
|
||||
inplay:Plains
|
||||
[DO]
|
||||
Cursed Land
|
||||
Plains
|
||||
eot
|
||||
eot
|
||||
next
|
||||
[ASSERT]
|
||||
upkeep
|
||||
[PLAYER1]
|
||||
inplay:Cursed Land
|
||||
[PLAYER2]
|
||||
inplay:Plains
|
||||
life:19
|
||||
[END]
|
||||
24
projects/mtg/bin/Res/test/bugs/cursed_land2_i188.txt
Normal file
24
projects/mtg/bin/Res/test/bugs/cursed_land2_i188.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
#NAME: Cursed Land 2
|
||||
#DESC: Tests whether Cursed Land triggers correctly.
|
||||
#DESC: Second Part: Cast on an opponent's land.
|
||||
#DESC: Verifies that Cursed Land
|
||||
#DESC: does *not* trigger in opponent's turn.
|
||||
[INIT]
|
||||
secondmain
|
||||
[PLAYER1]
|
||||
hand:Cursed Land
|
||||
manapool:{B}{B}{B}{B}
|
||||
[PLAYER2]
|
||||
inplay:Plains
|
||||
[DO]
|
||||
Cursed Land
|
||||
Plains
|
||||
eot
|
||||
next
|
||||
[ASSERT]
|
||||
upkeep
|
||||
[PLAYER1]
|
||||
inplay:Cursed Land
|
||||
[PLAYER2]
|
||||
inplay:Plains
|
||||
[END]
|
||||
24
projects/mtg/bin/Res/test/bugs/cursed_land3_i188.txt
Normal file
24
projects/mtg/bin/Res/test/bugs/cursed_land3_i188.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
#NAME: Cursed Land 3
|
||||
#DESC: Tests whether Cursed Land triggers correctly.
|
||||
#DESC: Third part: Cast on one's own land. Verifies
|
||||
#DESC: that Cursed Land does damage to correct player.
|
||||
[INIT]
|
||||
secondmain
|
||||
[PLAYER1]
|
||||
inplay:Plains
|
||||
hand:Cursed Land
|
||||
manapool:{B}{B}{B}{B}
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
Cursed Land
|
||||
Plains
|
||||
eot
|
||||
eot
|
||||
next
|
||||
[ASSERT]
|
||||
upkeep
|
||||
[PLAYER1]
|
||||
inplay:Cursed Land,Plains
|
||||
life:19
|
||||
[PLAYER2]
|
||||
[END]
|
||||
23
projects/mtg/bin/Res/test/bugs/cursed_land4_i188.txt
Normal file
23
projects/mtg/bin/Res/test/bugs/cursed_land4_i188.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
#NAME: Cursed Land 4
|
||||
#DESC: Tests whether Cursed Land triggers correctly.
|
||||
#DESC: Fourth Part: Cast on one's own land.
|
||||
#DESC: Verifies that Cursed Land does *not* trigger
|
||||
#DESC: in opponent's turn.
|
||||
[INIT]
|
||||
secondmain
|
||||
[PLAYER1]
|
||||
inplay:Plains
|
||||
hand:Cursed Land
|
||||
manapool:{B}{B}{B}{B}
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
Cursed Land
|
||||
Plains
|
||||
eot
|
||||
next
|
||||
[ASSERT]
|
||||
upkeep
|
||||
[PLAYER1]
|
||||
inplay:Cursed Land,Plains
|
||||
[PLAYER2]
|
||||
[END]
|
||||
25
projects/mtg/bin/Res/test/bugs/mogg_flunkies1_i193.txt
Normal file
25
projects/mtg/bin/Res/test/bugs/mogg_flunkies1_i193.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
#NAME: Mogg Flunkies
|
||||
#DESC: If you choose the Grizzly Bears as
|
||||
#DESC: attackers, then choose one Mogg
|
||||
#DESC: Flunkies as attacker, and then remove
|
||||
#DESC: the Grizzly Bears as attackers, then
|
||||
#DESC: the Mogg Flunkies shouldn't be able
|
||||
#DESC: to attack
|
||||
[INIT]
|
||||
combatattackers
|
||||
[PLAYER1]
|
||||
inplay:Mogg Flunkies,Grizzly Bears
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
Grizzly Bears
|
||||
Mogg Flunkies
|
||||
Grizzly Bears
|
||||
next
|
||||
next
|
||||
next
|
||||
[ASSERT]
|
||||
combatend
|
||||
[PLAYER1]
|
||||
inplay:Mogg Flunkies,Grizzly Bears
|
||||
[PLAYER2]
|
||||
[END]
|
||||
19
projects/mtg/bin/Res/test/bugs/mogg_flunkies2_i193.txt
Normal file
19
projects/mtg/bin/Res/test/bugs/mogg_flunkies2_i193.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
#NAME: Mogg Flunkies
|
||||
#DESC: Testbed for two situations:
|
||||
#DESC: 1. If you choose the Grizzly Bears as
|
||||
#DESC: attackers, then choose one Mogg
|
||||
#DESC: Flunkies as attacker, and then remove
|
||||
#DESC: the Grizzly Bears as attackers, then
|
||||
#DESC: the Mogg Flunkies shouldn't be able
|
||||
#DESC: to attack
|
||||
#DESC: 2. Choosing two Mogg Flunkies as attackers
|
||||
#DESC: should work, but how can one do that
|
||||
#DESC: without selecting the Grizzly Bears
|
||||
#DESC: first?
|
||||
[INIT]
|
||||
combatattackers
|
||||
[PLAYER1]
|
||||
inplay:Mogg Flunkies,Mogg Flunkies,Grizzly Bears
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
human
|
||||
@@ -0,0 +1,27 @@
|
||||
#NAME: Pillory of the Sleepless
|
||||
#DESC: Tests whether Pillory of the
|
||||
#DESC: Sleepless triggers correctly.
|
||||
#DESC: First Part: cast on an opponent's creature.
|
||||
#DESC: Verifies that Pillory of the Sleepless
|
||||
#DESC: does damage to correct player.
|
||||
[INIT]
|
||||
secondmain
|
||||
[PLAYER1]
|
||||
hand:Pillory of the Sleepless
|
||||
manapool:{B}{B}{W}
|
||||
[PLAYER2]
|
||||
inplay:Grizzly Bears
|
||||
[DO]
|
||||
Pillory of the Sleepless
|
||||
Grizzly Bears
|
||||
eot
|
||||
eot
|
||||
next
|
||||
[ASSERT]
|
||||
upkeep
|
||||
[PLAYER1]
|
||||
inplay:Pillory of the Sleepless
|
||||
[PLAYER2]
|
||||
inplay:Grizzly Bears
|
||||
life:19
|
||||
[END]
|
||||
@@ -0,0 +1,26 @@
|
||||
#NAME: Pillory of the Sleepless 2
|
||||
#DESC: Tests whether Pillory of the
|
||||
#DESC: Sleepless triggers correctly.
|
||||
#DESC: Second Part: cast on an opponent's creature.
|
||||
#DESC: Verifies that Pillory of the Sleepless
|
||||
#DESC: does trigger in opponent's turn.
|
||||
[INIT]
|
||||
secondmain
|
||||
[PLAYER1]
|
||||
hand:Pillory of the Sleepless
|
||||
manapool:{B}{B}{W}
|
||||
[PLAYER2]
|
||||
inplay:Grizzly Bears
|
||||
[DO]
|
||||
Pillory of the Sleepless
|
||||
Grizzly Bears
|
||||
eot
|
||||
next
|
||||
[ASSERT]
|
||||
upkeep
|
||||
[PLAYER1]
|
||||
inplay:Pillory of the Sleepless
|
||||
[PLAYER2]
|
||||
inplay:Grizzly Bears
|
||||
life:19
|
||||
[END]
|
||||
@@ -0,0 +1,26 @@
|
||||
#NAME: Pillory of the Sleepless 3
|
||||
#DESC: Tests whether Pillory of the
|
||||
#DESC: Sleepless triggers correctly.
|
||||
#DESC: Third part: cast on one's own creature.
|
||||
#DESC: Verifies that Pillory of the Sleepless
|
||||
#DESC: does damage to correct player.
|
||||
[INIT]
|
||||
secondmain
|
||||
[PLAYER1]
|
||||
inplay:Grizzly Bears
|
||||
hand:Pillory of the Sleepless
|
||||
manapool:{B}{B}{W}
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
Pillory of the Sleepless
|
||||
Grizzly Bears
|
||||
eot
|
||||
eot
|
||||
next
|
||||
[ASSERT]
|
||||
upkeep
|
||||
[PLAYER1]
|
||||
inplay:Pillory of the Sleepless,Grizzly Bears
|
||||
life:19
|
||||
[PLAYER2]
|
||||
[END]
|
||||
@@ -0,0 +1,24 @@
|
||||
#NAME: Pillory of the Sleepless 4
|
||||
#DESC: Tests whether Pillory of the
|
||||
#DESC: Sleepless triggers correctly.
|
||||
#DESC: Fourth part: cast on one's own creature.
|
||||
#DESC: Verifies that Pillory of the Sleepless
|
||||
#DESC: does *not* trigger in opponent's turn.
|
||||
[INIT]
|
||||
secondmain
|
||||
[PLAYER1]
|
||||
inplay:Grizzly Bears
|
||||
hand:Pillory of the Sleepless
|
||||
manapool:{B}{B}{W}
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
Pillory of the Sleepless
|
||||
Grizzly Bears
|
||||
eot
|
||||
next
|
||||
[ASSERT]
|
||||
upkeep
|
||||
[PLAYER1]
|
||||
inplay:Pillory of the Sleepless,Grizzly Bears
|
||||
[PLAYER2]
|
||||
[END]
|
||||
Reference in New Issue
Block a user