Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Dec 22, 2024
1 parent ab70c6d commit e7b2594
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/unit/SanSignalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,21 @@ public function b5()
$this->assertEquals($expectedUnnormalized, $sanSignal->unnormalized);
$this->assertEquals($expectedNormalized, $sanSignal->normalized);
}

/**
* @test
*/
public function h7()
{
$expectedUnnormalized = [ 0.0, 3.0 ];
$expectedNormalized = [ 0.0, 3.0 ];

$fen = 'k7/8/7P/8/8/8/8/K7 w - -';
$movetext = '1.h7';
$board = FenToBoardFactory::create($fen);
$sanSignal = new SanSignal(self::$function, $movetext, $board);

$this->assertEquals($expectedUnnormalized, $sanSignal->unnormalized);
$this->assertEquals($expectedNormalized, $sanSignal->normalized);
}
}

0 comments on commit e7b2594

Please sign in to comment.