From b69d0daabbb830b1dac93d757cdc5dab253574c2 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Tue, 18 Aug 2020 11:37:29 +0200 Subject: [PATCH] Add tests for BigNumber::of() --- tests/BigDecimalTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/BigDecimalTest.php b/tests/BigDecimalTest.php index 6882f20..f8d3443 100644 --- a/tests/BigDecimalTest.php +++ b/tests/BigDecimalTest.php @@ -72,6 +72,9 @@ public function providerOf() : array ['+.2', '2', 1], ['-.33', '-33', 2], ['1.e2', '100', 0], + ['.1e-1', '1', 2], + ['.1e0', '1', 1], + ['.1e1', '1', 0], ['.1e2', '10', 0], ['1.e-2', '1', 2], ['.1e-2', '1', 3],