mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
merge fix
This commit is contained in:
parent
e3ae00f696
commit
88279afcd5
1 changed files with 5 additions and 7 deletions
|
|
@ -112,16 +112,14 @@ public class SaddleTest extends CardTestPlayerBase {
|
|||
setChoice(playerA, lion);
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
|
||||
// TODO: test framework must have tools to check targeting (as workaround try to check it by look at test command error)
|
||||
try {
|
||||
execute();
|
||||
} catch (AssertionError e) {
|
||||
Assert.assertEquals(
|
||||
"Lion can't be targeted",
|
||||
"Missing CHOICE def for turn 1, step DECLARE_ATTACKERS, PlayerA\n" +
|
||||
"Object: PermanentCard: Rambling Possum;\n" +
|
||||
"Target: TargetPermanent: Select creatures that saddled it this turn (selected 0)",
|
||||
e.getMessage()
|
||||
);
|
||||
if (!e.getMessage().contains("Select creatures that saddled it this turn (selected 0)")) {
|
||||
Assert.fail("Lion can't be targeted, but catch another error:\n" + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
assertTapped(bear, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue