Completed
Push — master ( 1eb9be...9028f9 )
by Andreu
02:32
created

test_that_forcing_concrete_precision_on_creation_does_not_corrupt_the_passed_value()   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
3
declare(strict_types=1);
4
5
use Litipk\BigNumbers\Decimal;
6
use PHPUnit\Framework\TestCase;
7
8
class issue55Test extends TestCase
9
{
10
    public function test_that_forcing_concrete_precision_on_creation_does_not_corrupt_the_passed_value()
11
    {
12
        $this->assertEquals(4.0, Decimal::create(4.0, 8)->asFloat());
13
    }
14
}