trueskill/tests/TrueSkill/FactorGraphTeamTrueSkillCalculatorTest.php

27 lines
966 B
PHP
Raw Normal View History

2024-02-02 14:09:07 +00:00
<?php declare(strict_types=1);
2022-07-05 13:55:47 +00:00
namespace DNW\Skills\Tests\TrueSkill;
2022-07-05 13:33:34 +00:00
use DNW\Skills\TrueSkill\FactorGraphTrueSkillCalculator;
use DNW\Skills\SkillCalculatorSupportedOptions;
use PHPUnit\Framework\TestCase;
2022-07-05 13:34:49 +00:00
class FactorGraphTeamTrueSkillCalculatorTest extends TestCase
{
2023-08-01 11:26:38 +00:00
public function testFactorGraphTrueSkillCalculator(): void
2016-05-24 13:12:29 +00:00
{
$calculator = new FactorGraphTrueSkillCalculator();
2016-05-24 13:12:29 +00:00
TrueSkillCalculatorTests::testAllTwoPlayerScenarios($this, $calculator);
TrueSkillCalculatorTests::testAllTwoTeamScenarios($this, $calculator);
2010-10-03 21:42:31 +00:00
TrueSkillCalculatorTests::testAllMultipleTeamScenarios($this, $calculator);
2010-10-03 23:16:17 +00:00
TrueSkillCalculatorTests::testPartialPlayScenarios($this, $calculator);
}
public function testMethodisSupported(): void
{
$calculator = new FactorGraphTrueSkillCalculator();
$this->assertEquals(true, $calculator->isSupported(SkillCalculatorSupportedOptions::PARTIAL_PLAY));
}
2022-07-05 13:55:47 +00:00
}