mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 09:57:40 +00:00
15 lines
435 B
PHP
15 lines
435 B
PHP
|
<?php
|
||
|
require_once 'PHPUnit/Framework.php';
|
||
|
require_once(dirname(__FILE__) . '/../../PHPSkills/Numerics/BasicMath.php');
|
||
|
|
||
|
|
||
|
class BasicMathTest extends PHPUnit_Framework_TestCase
|
||
|
{
|
||
|
public function testSquare()
|
||
|
{
|
||
|
$this->assertEquals( 1, Moserware\Numerics\square(1) );
|
||
|
$this->assertEquals( 1.44, Moserware\Numerics\square(1.2) );
|
||
|
$this->assertEquals( 4, Moserware\Numerics\square(2) );
|
||
|
}
|
||
|
}
|
||
|
?>
|