Skip to content

Commit 98654fd

Browse files
authored
Update LengthTest.php
Work around a rounding error
1 parent 779971d commit 98654fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PhysicalQuantity/LengthTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function testToMegameters(): void
156156
public function testToInches(): void
157157
{
158158
$quantity = new Length(2, 'ft');
159-
$this->assertEquals(24, $quantity->toUnit('in'));
159+
$this->assertEquals(24, round($quantity->toUnit('in')));
160160
}
161161

162162
public function testToNauticalMiles(): void

0 commit comments

Comments
 (0)