mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-19 00:08:37 +00:00
Fixing failing tests and misc cleanup
This commit is contained in:
@ -6,17 +6,17 @@ class RankSorterTest extends TestCase
|
||||
{
|
||||
public function testSort()
|
||||
{
|
||||
$team1 = array( "a" => 1, "b" => 2 );
|
||||
$team2 = array( "c" => 3, "d" => 4 );
|
||||
$team3 = array( "e" => 5, "f" => 6 );
|
||||
|
||||
$team1 = array("a" => 1, "b" => 2);
|
||||
$team2 = array("c" => 3, "d" => 4);
|
||||
$team3 = array("e" => 5, "f" => 6);
|
||||
|
||||
$teams = array($team1, $team2, $team3);
|
||||
|
||||
|
||||
$teamRanks = array(3, 1, 2);
|
||||
|
||||
|
||||
$sortedRanks = RankSorter::sort($teams, $teamRanks);
|
||||
|
||||
$this->assertEquals($team2, $sortedRanks[0]);
|
||||
|
||||
$this->assertEquals($team2, $sortedRanks[0]);
|
||||
$this->assertEquals($team3, $sortedRanks[1]);
|
||||
$this->assertEquals($team1, $sortedRanks[2]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user