Skip to content

Commit

Permalink
Fixed tests that didn't perform any assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Feb 21, 2025
1 parent 71fc2a0 commit 554740f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/Variant/Classical/BoardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1801,20 +1801,26 @@ public function c3_defends_b4_and_d4()
*/
public function play_lan_a4_b5_axb5_a6_b6()
{
$expected = 'rnbqkbnr/2pppppp/pP6/8/8/8/1PPPPPPP/RNBQKBNR b KQkq -';

$board = new Board();

$board->playLan('w', 'a2a4');
$board->playLan('b', 'b7b5');
$board->playLan('w', 'a4b5');
$board->playLan('b', 'a7a6');
$board->playLan('w', 'b5b6');

$this->assertSame($expected, $board->toFen());
}

/**
* @test
*/
public function play_lan_b4_a6_b5_h6_h3_c5_g3_h5_b6()
{
$expected = 'rnbqkbnr/1p1pppp1/pP6/2p4p/8/6PP/P1PPPP2/RNBQKBNR b KQkq -';

$board = new Board();

$board->playLan('w', 'b2b4');
Expand All @@ -1826,6 +1832,8 @@ public function play_lan_b4_a6_b5_h6_h3_c5_g3_h5_b6()
$board->playLan('w', 'g2g3');
$board->playLan('b', 'h6h5');
$board->playLan('w', 'b5b6');

$this->assertSame($expected, $board->toFen());
}

/**
Expand Down

0 comments on commit 554740f

Please sign in to comment.