Completed
Push — master ( 16ba57...edea34 )
by Andreu
13s
created

DecimalIsLessThanTest::testEqual()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
declare(strict_types = 1);
3
4
use Litipk\BigNumbers\Decimal;
5
use PHPUnit\Framework\TestCase;
6
7
class DecimalIsLessThanTest extends TestCase
8
{
9
    public function testGreater()
10
    {
11
        $this->assertFalse(Decimal::fromFloat(1.01)->isLessThan(Decimal::fromFloat(1.001)));
12
    }
13
14
    public function testEqual()
15
    {
16
        $this->assertFalse(Decimal::fromFloat(1.001)->isLessThan(Decimal::fromFloat(1.001)));
17
    }
18
19
    public function testLess()
20
    {
21
        $this->assertTrue(Decimal::fromFloat(1.001)->isLessThan(Decimal::fromFloat(1.01)));
22
    }
23
}
24