mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
Jens True
23fc14af0a
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
27 lines
941 B
PHP
27 lines
941 B
PHP
<?php
|
|
|
|
namespace DNW\Skills\Tests\TrueSkill;
|
|
|
|
use DNW\Skills\TrueSkill\FactorGraphTrueSkillCalculator;
|
|
use DNW\Skills\SkillCalculatorSupportedOptions;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class FactorGraphTeamTrueSkillCalculatorTest extends TestCase
|
|
{
|
|
public function testFactorGraphTrueSkillCalculator(): void
|
|
{
|
|
$calculator = new FactorGraphTrueSkillCalculator();
|
|
|
|
TrueSkillCalculatorTests::testAllTwoPlayerScenarios($this, $calculator);
|
|
TrueSkillCalculatorTests::testAllTwoTeamScenarios($this, $calculator);
|
|
TrueSkillCalculatorTests::testAllMultipleTeamScenarios($this, $calculator);
|
|
TrueSkillCalculatorTests::testPartialPlayScenarios($this, $calculator);
|
|
}
|
|
|
|
public function testMethodisSupported(): void
|
|
{
|
|
$calculator = new FactorGraphTrueSkillCalculator();
|
|
$this->assertEquals(true, $calculator->isSupported(SkillCalculatorSupportedOptions::PARTIAL_PLAY));
|
|
}
|
|
}
|