mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
14 lines
363 B
PHP
14 lines
363 B
PHP
<?php namespace DNW\Skills\Tests\Numerics;
|
|
|
|
use DNW\Skills\Numerics\BasicMath;
|
|
use DNW\Skills\Tests\TestCase;
|
|
|
|
class BasicMathTest extends TestCase
|
|
{
|
|
public function testSquare()
|
|
{
|
|
$this->assertEquals(1, BasicMath::square(1));
|
|
$this->assertEquals(1.44, BasicMath::square(1.2));
|
|
$this->assertEquals(4, BasicMath::square(2));
|
|
}
|
|
} |