We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d52148 commit 8364b43Copy full SHA for 8364b43
Tests/ChessGameTest.php
@@ -1096,12 +1096,14 @@ public function testGameShouldEndInFiveFoldRepetition()
1096
$this->assertFiveFoldRepetitionDraw();
1097
}
1098
1099
- /**
1100
- * PHP8
1101
- *
1102
- * E_WARNING: Undefined array key 2
1103
- */
1104
- public function testInBasicDrawWith3Pieces()
+ public function testNotInBasicDrawTwoWhiteVsTwoBlack()
+ {
+ $fen = '8/8/8/8/4k3/8/3Kn3/6Q1 w - -';
+ $this->game->resetGame($fen);
+ $this->assertFalse($this->game->inBasicDraw());
+ }
1105
+
1106
+ public function testInBasicDrawThreePiecesRemained()
1107
{
1108
$fen = '8/8/8/8/4k3/8/3K4/6n1 w - -';
1109
$this->game->resetGame($fen);
0 commit comments