for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
use Litipk\BigNumbers\Decimal;
use PHPUnit\Framework\TestCase;
class DecimalIsLessOrEqualToTest extends TestCase
{
public function testGreater()
$this->assertFalse(Decimal::fromFloat(1.01)->isLessOrEqualTo(Decimal::fromFloat(1.001)));
}
public function testEqual()
$this->assertTrue(Decimal::fromFloat(1.001)->isLessOrEqualTo(Decimal::fromFloat(1.001)));
public function testLess()
$this->assertTrue(Decimal::fromFloat(1.001)->isLessOrEqualTo(Decimal::fromFloat(1.01)));