diff options
author | P. J. McDermott <pj@pehjota.net> | 2017-01-06 21:53:00 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2017-01-06 21:53:00 (EST) |
commit | 39543ba6addf5372f997e8a40d39a9a5121093a4 (patch) | |
tree | a9f9123b4549ddafb6defcee48b0c6f85b0a1eff | |
parent | 5d3df68b77ba3ea14163e29c63227eaab3c77024 (diff) | |
download | Math-Decimal-FastPP-39543ba6addf5372f997e8a40d39a9a5121093a4.zip Math-Decimal-FastPP-39543ba6addf5372f997e8a40d39a9a5121093a4.tar.gz Math-Decimal-FastPP-39543ba6addf5372f997e8a40d39a9a5121093a4.tar.bz2 |
t/10_dadd.t: Add more tests
-rw-r--r-- | t/10_dadd.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/10_dadd.t b/t/10_dadd.t index 4740a4a..51d27f4 100644 --- a/t/10_dadd.t +++ b/t/10_dadd.t @@ -32,9 +32,15 @@ my $i; [ 2 , 2 , "4." ], [ 1 , 0.23, "1.23"], [ 0.23, 1 , "1.23"], + [ 1 , -1 , "0." ], + [-1 , 1 , "0." ], [ 1.23, 4.56, "5.79"], [-1.23, 4.56, "3.33"], [-1.23, -4.56, "-5.79"], + [ 0.1 , 0.1 , ".2" ], + [-0.1 , -0.1 , "-.2" ], + [ 0.1 , -0.1 , ".0" ], + [-0.1 , 0.1 , ".0" ], [ 9.95, 0.52, "10.47"], ); |