added a failing test for planeswalker damage

This commit is contained in:
Evan Kranzler 2021-02-16 10:23:20 -05:00
parent 593d25d6be
commit 57dfba99b7

View file

@ -1,11 +1,13 @@
package org.mage.test.cards.planeswalker;
import mage.abilities.keyword.IndestructibleAbility;
import mage.constants.CardType;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import mage.counters.CounterType;
import mage.game.permanent.Permanent;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
@ -139,4 +141,24 @@ public class GideonTest extends CardTestPlayerBase {
assertPermanentCount(playerB, "Gideon, Battle-Forged", 0);
assertGraveyardCount(playerB, "Kytheon, Hero of Akros", 1);
}
@Ignore
@Test
public void testGideonJura() {
// TODO: this test fails because of how damage is currently handled
addCard(Zone.BATTLEFIELD, playerA, "Mountain");
addCard(Zone.BATTLEFIELD, playerA, "Gideon Jura");
addCard(Zone.BATTLEFIELD, playerA, "Leyline of Punishment");
addCard(Zone.HAND, playerA, "Lightning Bolt");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "0:");
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Lightning Bolt", "Gideon Jura");
setStopAt(1, PhaseStep.END_TURN);
execute();
assertType("Gideon Jura", CardType.CREATURE, true);
assertDamageReceived(playerA, "Gideon Jura", 3);
assertCounterCount(playerA, "Gideon Jura", CounterType.LOYALTY, 3);
}
}