mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 10:12:28 +01:00 
			
		
		
		
	
		
			All checks were successful
		
		
	
	ci/woodpecker/push/woodpecker Pipeline was successful
				
			
		
			
				
	
	
		
			17 lines
		
	
	
		
			372 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			372 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace DNW\Skills\Tests\Numerics;
 | 
						|
 | 
						|
use DNW\Skills\Numerics\BasicMath;
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
 | 
						|
class BasicMathTest extends TestCase
 | 
						|
{
 | 
						|
    public function testSquare(): void
 | 
						|
    {
 | 
						|
        $this->assertEquals(1, BasicMath::square(1));
 | 
						|
        $this->assertEquals(1.44, BasicMath::square(1.2));
 | 
						|
        $this->assertEquals(4, BasicMath::square(2));
 | 
						|
    }
 | 
						|
}
 |