Skip to content

Commit

Permalink
GameSimulationTest: update some hasKeyword tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanmac committed Jan 7, 2024
1 parent 3c25f32 commit c8def9b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public void testManifest() {
"Unmanifest");
AssertJUnit.assertNotNull(unmanifestSA);
AssertJUnit.assertEquals(2, manifestedCreature.getNetPower());
AssertJUnit.assertFalse(manifestedCreature.hasKeyword("Flying"));
AssertJUnit.assertFalse(manifestedCreature.hasKeyword(Keyword.FLYING));

GameSimulator sim2 = createSimulator(simGame, simGame.getPlayers().get(1));
Game simGame2 = sim2.getSimulatedGameState();
Expand All @@ -330,7 +330,7 @@ public void testManifest() {

Card ornithopter = findCardWithName(simGame2, "Ornithopter");
AssertJUnit.assertEquals(0, ornithopter.getNetPower());
AssertJUnit.assertTrue(ornithopter.hasKeyword("Flying"));
AssertJUnit.assertTrue(ornithopter.hasKeyword(Keyword.FLYING));
AssertJUnit.assertNull(findSAWithPrefix(ornithopter, "Unmanifest"));

GameCopier copier = new GameCopier(simGame2);
Expand Down Expand Up @@ -1359,12 +1359,12 @@ public void testPlayerXCount() {
Card bloodghast = addCardToZone("Bloodghast", p, ZoneType.Battlefield);
game.getAction().checkStateEffects(true);

assert (!bloodghast.hasKeyword("Haste"));
AssertJUnit.assertFalse(bloodghast.hasKeyword(Keyword.HASTE));

opp.setLife(5, null);
game.getAction().checkStateEffects(true);

assert (bloodghast.hasKeyword("Haste"));
AssertJUnit.assertTrue(bloodghast.hasKeyword(Keyword.HASTE));
}

@Test
Expand Down

0 comments on commit c8def9b

Please sign in to comment.