1
0
mirror of https://github.com/furyfire/trueskill.git synced 2025-03-19 16:27:49 +00:00

More testing and reporting

This commit is contained in:
2024-02-05 13:29:57 +00:00
parent c18ccd38e2
commit 1359cbeb6b
5 changed files with 31 additions and 12 deletions

22
tests/GameInfoTest.php Normal file

@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace DNW\Skills\Tests;
use DNW\Skills\GameInfo;
use PHPUnit\Framework\TestCase;
class GameInfoTest extends TestCase
{
public function testMembers(): void
{
$gi = new GameInfo(1, 2, 3, 4, 5);
$this->assertEquals(1, $gi->getInitialMean());
$this->assertEquals(2, $gi->getInitialStandardDeviation());
$this->assertEquals(3, $gi->getBeta());
$this->assertEquals(4, $gi->getDynamicsFactor());
$this->assertEquals(5, $gi->getDrawProbability());
$this->assertInstanceOf(\DNW\Skills\Rating::class, $gi->getDefaultRating());
}
}