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

issue55Test   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_that_forcing_concrete_precision_on_creation_does_not_corrupt_the_passed_value() 0 4 1
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
}