1
0
mirror of https://github.com/danog/math.git synced 2024-11-30 04:19:31 +01:00

Add tests for BigDecimal::of() with leading zeros in exponent

This commit is contained in:
Benjamin Morel 2015-06-21 15:13:54 +02:00
parent 65d4dd75d6
commit 41c34b1014

View File

@ -126,6 +126,8 @@ class BigDecimalTest extends AbstractTestCase
['0.1e+0', '1', 1],
['0.1e+1','1', 0],
['0.1e+2','10', 0],
['1.23e+011', '123000000000', 0],
['1.23e-011', '123', 13],
['0.01e-2', '1', 4],
['0.01e-1', '1', 3],