mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 02:02:29 +01:00 
			
		
		
		
	Moved UnitTests to tests/ and Skills to src/
This commit is contained in:
		
							
								
								
									
										15
									
								
								tests/Numerics/BasicMathTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tests/Numerics/BasicMathTest.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<?php
 | 
			
		||||
require_once 'PHPUnit/Framework.php';
 | 
			
		||||
require_once(dirname(__FILE__) . '/../../Skills/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) );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user