2022-07-05 15:55:47 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace DNW\Skills\Tests\Numerics;
|
2010-08-28 22:05:41 -04:00
|
|
|
|
2022-07-05 15:33:34 +02:00
|
|
|
use DNW\Skills\Numerics\BasicMath;
|
|
|
|
use DNW\Skills\Tests\TestCase;
|
2016-05-24 14:06:43 +02:00
|
|
|
|
|
|
|
class BasicMathTest extends TestCase
|
2016-05-24 13:59:35 +02:00
|
|
|
{
|
2023-08-01 11:26:38 +00:00
|
|
|
public function testSquare(): void
|
2016-05-24 13:59:35 +02:00
|
|
|
{
|
2016-05-24 15:12:29 +02:00
|
|
|
$this->assertEquals(1, BasicMath::square(1));
|
|
|
|
$this->assertEquals(1.44, BasicMath::square(1.2));
|
|
|
|
$this->assertEquals(4, BasicMath::square(2));
|
2010-08-28 22:05:41 -04:00
|
|
|
}
|
2022-07-05 15:55:47 +02:00
|
|
|
}
|