Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Dec 21, 2024
1 parent d789f38 commit 2b0d494
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/SanSignalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static function setUpBeforeClass(): void
public function e4_d5_exd5_Qxd5()
{
$expectedCenter = [ 0, 1.0, 0.08, 0.67, -1.0 ];
$expectedConnectivity = [ 0, -1.0, -1.0, -1.0, 1.0 ];
$expectedSpace = [ 0, 1.0, 0.25, 0.50, -1.0 ];
$expectedSignal = [ 0.0, 2.0, -1.67, -0.16, -5.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];

Expand All @@ -31,6 +32,7 @@ public function e4_d5_exd5_Qxd5()
$sanSignal = new SanSignal(self::$function, $movetext, new Board());

$this->assertEquals($expectedCenter, $sanSignal->balance[1]);
$this->assertEquals($expectedConnectivity, $sanSignal->balance[2]);
$this->assertEquals($expectedSpace, $sanSignal->balance[3]);
$this->assertEquals($expectedSignal, $sanSignal->signal);
}
Expand Down

0 comments on commit 2b0d494

Please sign in to comment.