mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Typo fix
This commit is contained in:
parent
e0371bb22b
commit
e68b79336a
9 changed files with 20 additions and 20 deletions
|
|
@ -416,7 +416,7 @@ public class LoadTest {
|
|||
}
|
||||
|
||||
if (errors.size() > 0) {
|
||||
System.out.println("Not all games finished, founded " + errors.size() + " errors: ");
|
||||
System.out.println("Not all games finished, found " + errors.size() + " errors: ");
|
||||
for (String s : errors) {
|
||||
System.out.println(s);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -442,7 +442,7 @@ public class TestPlayer implements Player {
|
|||
continue;
|
||||
}
|
||||
|
||||
// founded, can use as target
|
||||
// found, can use as target
|
||||
|
||||
if (currentTarget.getNumberOfTargets() == 1) {
|
||||
currentTarget.clearChosen();
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
|
|||
}
|
||||
}
|
||||
Assert.assertFalse("Wrong stop command on " + this.stopOnTurn + " / " + this.stopAtStep + " (" + this.stopAtStep.getIndex() + ")"
|
||||
+ " (founded actions after stop on " + maxTurn + " / " + maxPhase + ")",
|
||||
+ " (found actions after stop on " + maxTurn + " / " + maxPhase + ")",
|
||||
(maxTurn > this.stopOnTurn) || (maxTurn == this.stopOnTurn && maxPhase > this.stopAtStep.getIndex()));
|
||||
|
||||
for (Player player : currentGame.getPlayers().values()) {
|
||||
|
|
@ -1220,17 +1220,17 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
|
|||
}
|
||||
|
||||
public void assertActionsCount(TestPlayer player, int count) throws AssertionError {
|
||||
Assert.assertEquals("(Actions of " + player.getName() + ") Count are not equel (founded ["
|
||||
Assert.assertEquals("(Actions of " + player.getName() + ") Count are not equel (found ["
|
||||
+ player.getActions().stream().map(PlayerAction::getAction).collect(Collectors.joining(", "))
|
||||
+ "])", count, player.getActions().size());
|
||||
}
|
||||
|
||||
public void assertChoicesCount(TestPlayer player, int count) throws AssertionError {
|
||||
Assert.assertEquals("(Choices of " + player.getName() + ") Count are not equel (founded " + player.getChoices() + ")", count, player.getChoices().size());
|
||||
Assert.assertEquals("(Choices of " + player.getName() + ") Count are not equel (found " + player.getChoices() + ")", count, player.getChoices().size());
|
||||
}
|
||||
|
||||
public void assertTargetsCount(TestPlayer player, int count) throws AssertionError {
|
||||
Assert.assertEquals("(Targets of " + player.getName() + ") Count are not equel (founded " + player.getTargets() + ")", count, player.getTargets().size());
|
||||
Assert.assertEquals("(Targets of " + player.getName() + ") Count are not equel (found " + player.getTargets() + ")", count, player.getTargets().size());
|
||||
}
|
||||
|
||||
public void assertAllCommandsUsed() throws AssertionError {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public class ManaOptionsTestUtils {
|
|||
for(Mana mana: manaList){
|
||||
String s = mana.toString();
|
||||
if(list.contains(s)){
|
||||
Assert.fail("Founded duplicated mana option " + s + " in " + manaList.toString());
|
||||
Assert.fail("Found duplicated mana option " + s + " in " + manaList.toString());
|
||||
}else{
|
||||
list.add(s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue