mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Fixed incorrect NewPrespectives test. 3 Mountains caused New Perspectives discard instead of cast.
This commit is contained in:
parent
a5c7d55ed6
commit
f912ee6213
1 changed files with 17 additions and 11 deletions
|
@ -18,7 +18,9 @@ public class NewPerspectivesTest extends CardTestPlayerBase {
|
|||
*/
|
||||
private String nPerspectives = "New Perspectives";
|
||||
|
||||
// just a basic test for free cycling!
|
||||
/**
|
||||
* just a basic test for free cycling!
|
||||
*/
|
||||
@Test
|
||||
public void newPerspectives_7Cards_FreeCycling() {
|
||||
|
||||
|
@ -41,7 +43,9 @@ public class NewPerspectivesTest extends CardTestPlayerBase {
|
|||
assertHandCount(playerA, 7); // 4 + 3 (new perspectives ETB) (+ 1 - 1) (cycling)
|
||||
}
|
||||
|
||||
// fewer than 7 cards in hand, no free cycle!
|
||||
/**
|
||||
* Fewer than 7 cards in hand, no free cycle!
|
||||
*/
|
||||
@Test
|
||||
public void newPerspectives_LessThan7Cards_CyclingNotFree() {
|
||||
|
||||
|
@ -103,7 +107,7 @@ public class NewPerspectivesTest extends CardTestPlayerBase {
|
|||
removeAllCardsFromHand(playerA);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 6);
|
||||
addCard(Zone.HAND, playerA, nPerspectives, 2);
|
||||
addCard(Zone.HAND, playerA, "Mountain", 3);
|
||||
//this made test buggy: addCard(Zone.HAND, playerA, "Mountain", 3);
|
||||
addCard(Zone.HAND, playerA, fJet);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, nPerspectives);
|
||||
|
@ -114,8 +118,10 @@ public class NewPerspectivesTest extends CardTestPlayerBase {
|
|||
setStopAt(3, PhaseStep.END_COMBAT);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerA, nPerspectives, 0); // check it wasn't discarded
|
||||
assertPermanentCount(playerA, nPerspectives, 2);
|
||||
assertGraveyardCount(playerA, fJet, 1);
|
||||
assertHandCount(playerA, 11); // 1 (flame jet cycled) + 3 Mountains in hand + 3 (new perspectives ETB) + 1 (draw step) + 3 (2nd perspectives etb)
|
||||
//assertHandCount(playerA, 11); // 1 (flame jet cycled) + 3 Mountains in hand + 3 (new perspectives ETB) + 1 (draw step) + 3 (2nd perspectives etb)
|
||||
assertHandCount(playerA, 8); // 1 (flame jet cycled) + 3 (new perspectives ETB) + 1 (draw step) + 3 (2nd perspectives etb)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue