Psyringe - added test scripts for recently added cards and mechanics (nofizzle, manacost, X-effects). Also added thorough testing for Angry Mob to help clearing up recent discussion.

This commit is contained in:
Psyyringe
2009-12-03 17:37:05 +00:00
parent 6061601c77
commit 1a8bd648d8
15 changed files with 401 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ generic/legendary.txt
generic/lifelink.txt
generic/m10_blockers.txt
generic/m10_blockers2.txt
generic/nofizzle.txt
generic/persist.txt
generic/persist2.txt
generic/persist3.txt
@@ -47,12 +48,21 @@ generic/wither.txt
#Specific Cards
########################
act_of_treason.txt
aether_mutation.txt
afflict.txt
akron_legionnaire.txt
alluring_siren.txt
Amugaba.txt
anarchy.txt
ancestors_chosen.txt
angry_mob1.txt
angry_mob2.txt
angry_mob3.txt
angry_mob4.txt
angry_mob4b.txt
angry_mob5.txt
angry_mob6.txt
angry_mob7.txt
animate_artifact.txt
animate_artifact2.txt
animate_dead.txt
@@ -127,6 +137,7 @@ crystal_rod_i172.txt
dark_banishing.txt
dauntless_escort.txt
dauthi_embrace.txt
death_grasp.txt
death_ward.txt
deja_vu.txt
dingus_egg.txt
@@ -312,6 +323,7 @@ twitch.txt
unstable_mutation.txt
unstable_mutation2.txt
unwilling_recruit.txt
urzas_lands.txt
vampire_bats.txt
vampiric_link.txt
volcanic_eruption.txt

View File

@@ -0,0 +1,22 @@
#NAME: Aether Mutation
#DESC: Verifies that Aether Mutation
#DESC: produces the correct amount
#DESC: of Saproling Tokens
[INIT]
firstmain
[PLAYER1]
hand:28669
manapool:{3}{G}{U}
[PLAYER2]
inplay:Grizzly Bears
[DO]
28669
Grizzly Bears
[ASSERT]
firstmain
[PLAYER1]
inplay:-28669,-28669
graveyard:28669
[PLAYER2]
hand:Grizzly Bears
[END]

View File

@@ -0,0 +1,22 @@
#NAME: Angry Mob 1
#DESC: Tests whether Angry Mob gets
#DESC: its bonus when put into play.
[INIT]
firstmain
[PLAYER1]
hand:Angry Mob,Swords to Plowshares
manapool:{W}{W}{W}{W}{W}
[PLAYER2]
inplay:1373,1374,1375
[DO]
Angry Mob
Swords to Plowshares
Angry Mob
[ASSERT]
firstmain
[PLAYER1]
graveyard:Swords to Plowshares
life:25
[PLAYER2]
inplay:1373,1374,1375
[END]

View File

@@ -0,0 +1,27 @@
#NAME: Angry Mob 2
#DESC: Tests whether Angry Mob's bonus gets
#DESC: correctly updated when the opponent's
#DESC: number of swamps changes in the player's
#DESC: turn.
[INIT]
firstmain
[PLAYER1]
hand:Angry Mob,Swords to Plowshares,Boomerang
manapool:{W}{W}{2}{W}{U}{U}
[PLAYER2]
inplay:1373,1374,1375
[DO]
Angry Mob
Boomerang
1375
Swords to Plowshares
Angry Mob
[ASSERT]
firstmain
[PLAYER1]
graveyard:Swords to Plowshares,Boomerang
life:24
[PLAYER2]
inplay:1373,1374
hand:1375
[END]

View File

@@ -0,0 +1,29 @@
#NAME: Angry Mob 3
#DESC: Tests whether Angry Mob's bonus gets
#DESC: correctly removed during the opponent's
#DESC: turn.
[INIT]
secondmain
[PLAYER1]
hand:Angry Mob
manapool:{W}{W}{2}
[PLAYER2]
inplay:1373,1374,1375,Plains
hand:Swords to Plowshares
[DO]
Angry Mob
eot
next
next
next
Plains
Swords to Plowshares
Angry Mob
[ASSERT]
firstmain
[PLAYER1]
life:22
[PLAYER2]
inplay:1373,1374,1375,Plains
graveyard:Swords to Plowshares
[END]

View File

@@ -0,0 +1,32 @@
#NAME: Angry Mob 4
#DESC: Tests whether Angry Mob's bonus gets
#DESC: correctly removed during the opponent's
#DESC: turn, and not influenced if the
#DESC: opponent's number of swamps increases
#DESC: during his turn.
[INIT]
secondmain
[PLAYER1]
hand:Angry Mob
manapool:{W}{W}{2}
[PLAYER2]
inplay:1373,1374,Plains
hand:Swords to Plowshares,1375
[DO]
Angry Mob
eot
next
next
next
1375
Plains
Swords to Plowshares
Angry Mob
[ASSERT]
firstmain
[PLAYER1]
life:22
[PLAYER2]
inplay:1373,1374,1375,Plains
graveyard:Swords to Plowshares
[END]

View File

@@ -0,0 +1,36 @@
#NAME: Angry Mob 4b
#DESC: Tests whether Angry Mob's bonus gets
#DESC: correctly removed during the opponent's
#DESC: turn, and not influenced if the
#DESC: opponent's number of swamps DEcreases
#DESC: during his turn.
[INIT]
secondmain
[PLAYER1]
hand:Angry Mob
manapool:{W}{W}{2}
[PLAYER2]
inplay:1373,1374,1375,Plains
hand:Swords to Plowshares,Rain of Tears
[DO]
Angry Mob
eot
next
next
next
1373
1374
1375
Rain of Tears
1375
Plains
Swords to Plowshares
Angry Mob
[ASSERT]
firstmain
[PLAYER1]
life:22
[PLAYER2]
inplay:1373,1374,Plains
graveyard:Swords to Plowshares,Rain of Tears,1375
[END]

View File

@@ -0,0 +1,31 @@
#NAME: Angry Mob 5
#DESC: Tests whether Angry Mob's bonus gets
#DESC: correctly set at the beginning of the
#DESC: player's turn.
[INIT]
secondmain
[PLAYER1]
inplay:Plains
hand:Angry Mob,Swords to Plowshares
manapool:{W}{W}{2}
[PLAYER2]
inplay:1373,1374,1375
[DO]
Angry Mob
eot
eot
next
next
next
Plains
Swords to Plowshares
Angry Mob
[ASSERT]
firstmain
[PLAYER1]
inplay:Plains
graveyard:Swords to Plowshares
life:25
[PLAYER2]
inplay:1373,1374,1375
[END]

View File

@@ -0,0 +1,38 @@
#NAME: Angry Mob 6
#DESC: Tests whether Angry Mob's bonus gets
#DESC: correctly set at the beginning of the
#DESC: player's turn, and correctly updated
#DESC: if the number of the opponent's swamps
#DESC: changes during the player's turn.
[INIT]
secondmain
[PLAYER1]
inplay:Plains,1392,1393
hand:Angry Mob,Swords to Plowshares,Boomerang
manapool:{W}{W}{2}
[PLAYER2]
inplay:1373,1374,1375
[DO]
Angry Mob
eot
eot
next
next
next
1392
1393
Boomerang
1375
Plains
Swords to Plowshares
Angry Mob
[ASSERT]
firstmain
[PLAYER1]
inplay:Plains,1392,1393
graveyard:Swords to Plowshares,Boomerang
life:24
[PLAYER2]
inplay:1373,1374
hand:1375
[END]

View File

@@ -0,0 +1,28 @@
#NAME: Angry Mob 7
#DESC: Tests whether Angry Mob's bonus gets
#DESC: correctly updated when a swamp is
#DESC: returned to the oppoenent's control
#DESC: during the player's turn.
[INIT]
firstmain
[PLAYER1]
hand:Angry Mob,Swords to Plowshares,Annex,Demystify
manapool:{W}{W}{4}{W}{W}{U}{U}
[PLAYER2]
inplay:1373,1374,1375
[DO]
Annex
1373
Angry Mob
Demystify
Annex
Swords to Plowshares
Angry Mob
[ASSERT]
firstmain
[PLAYER1]
graveyard:Swords to Plowshares,Annex,Demystify
life:25
[PLAYER2]
inplay:1373,1374,1375
[END]

View File

@@ -0,0 +1,22 @@
#NAME: Fallowsage
#DESC: Bug: AI is caught in an endless
#DESC: loop if it tries to attack with
#DESC: Fallowsage.
#DESC: See http://code.google.com/p/wagic/issues/detail?id=227
[INIT]
combatattackers
[PLAYER1]
inplay:Fallowsage
library:Island,Plains,Swamp,Mountain,Forest
[PLAYER2]
[DO]
ai
ai
ai
ai
ai
ai
ai
ai
ai
ai

View File

@@ -0,0 +1,24 @@
#NAME: Fallowsage
#DESC: Bug: Fallowsage allows
#DESC: multiple drawing of cards.
#DESC: See http://code.google.com/p/wagic/issues/detail?id=227
[INIT]
combatattackers
[PLAYER1]
inplay:Fallowsage
library:Plains,Swamp,Mountain,Forest,Island
[PLAYER2]
[DO]
Fallowsage
choice 1
Fallowsage
Fallowsage
choice 1
[ASSERT]
combatattackers
[PLAYER1]
inplay:Fallowsage
library:Plains,Swamp,Mountain,Forest
hand:Island
[PLAYER2]
[END]

View File

@@ -0,0 +1,21 @@
#NAME: Death Grasp
#DESC: Verifies that Death Grasp
#DESC: takes and gives the correct
#DESC: amount (X) of life.
[INIT]
firstmain
[PLAYER1]
hand:Death Grasp
manapool:{W}{B}{10}
[PLAYER2]
[DO]
Death Grasp
p2
[ASSERT]
firstmain
[PLAYER1]
graveyard:Death Grasp
life:30
[PLAYER2]
life:10
[END]

View File

@@ -0,0 +1,28 @@
#NAME: Nofizzle
#DESC: Verifiues that the nofizzle keyword
#DESC: works as expected: spells with nofizzle
#DESC: can't be countered, but other effects
#DESC: of the countering spell take effect.
[INIT]
firstmain
[PLAYER1]
hand:Great Sable Stag
manapool:{G}{G}{G}
[PLAYER2]
hand:Absorb
manapool:{W}{U}{U}
[DO]
Great Sable Stag
no
yes
Absorb
Great Sable Stag
endinterruption
[ASSERT]
firstmain
[PLAYER1]
inplay:Great Sable Stag
[PLAYER2]
graveyard:Absorb
life:23
[END]

View File

@@ -0,0 +1,29 @@
#NAME: Urza's Lands
#DESC: Verifies that Urza's lands
#DESC: give 2 mana if you have all
#DESC: three in play, and 1 if you
#DESC: don't.
#DESC:
#DESC: NOTE: The cards currently don't work exactly
#DESC: as they should. They give you a choice that
#DESC: you shouldn't have. Once this is fixed, the
#DESC: line "choice 1" needs to be removed from this
#DESC: script (along with this notice).
[INIT]
firstmain
[PLAYER1]
inplay:Urza's Mine,Urza's Power Plant
hand:Urza's Tower
[PLAYER2]
[DO]
Urza's Mine
Urza's Tower
Urza's Tower
choice 1
[ASSERT]
firstmain
[PLAYER1]
inplay:Urza's Mine,Urza's Power Plant,Urza's Tower
manapool:{3}
[PLAYER2]
[END]