Skip to content

Commit 02b330b

Browse files
committed
Add test for decimal number base
1 parent 816095d commit 02b330b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/FileSizeTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,14 @@ public function testAutoRounding()
134134

135135
$this->assertSame($size->asAuto(), '158.2 MB');
136136
}
137+
138+
/**
139+
* Test a decimal base conversion.
140+
*/
141+
public function testDecimalBase()
142+
{
143+
$size = new FileSize(10921134, 10);
144+
145+
$this->assertSame($size->asAuto(), '10.92 MB');
146+
}
137147
}

0 commit comments

Comments
 (0)