mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-10-31 00:12:29 +01:00 
			
		
		
		
	More testing and reporting
This commit is contained in:
		
							
								
								
									
										22
									
								
								tests/GameInfoTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										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()); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user