Skip to content

Commit 0ab2ac1

Browse files
committed
test: add test case
1 parent a12cdb3 commit 0ab2ac1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Unit/LengthTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ public function testFromFoot()
2121
$lengthUnit = new Length\Foot(1);
2222
$this->assertEquals('0.3048 m', Length\Meter::from($lengthUnit)->format(4));
2323
}
24+
public function testFromFootAnother()
25+
{
26+
$lengthUnit = new Length\Foot(136043.25);
27+
$lengthUnitTo = new Length\Meter();
28+
$this->assertEquals('41465.9826 m', $lengthUnit->to($lengthUnitTo)->format(4));
29+
}
2430
public function testFromYard()
2531
{
2632
$lengthUnit = new Length\Yard(1);

0 commit comments

Comments
 (0)