summaryrefslogtreecommitdiff
path: root/test/files/run/bigDecimalTest.check
diff options
context:
space:
mode:
authorRex Kerr <ichoran@gmail.com>2013-12-29 07:52:08 -0800
committerRex Kerr <ichoran@gmail.com>2014-01-14 01:28:08 -0800
commit29541ce3961a797836b232ccc12a60cc09f5de3e (patch)
treed2503fdb387659c91bc821fe2643b361e19d2f00 /test/files/run/bigDecimalTest.check
parentef4c5d2f43e912b5562c1372228e9c6ec9f25bb0 (diff)
downloadscala-29541ce3961a797836b232ccc12a60cc09f5de3e.tar.gz
scala-29541ce3961a797836b232ccc12a60cc09f5de3e.tar.bz2
scala-29541ce3961a797836b232ccc12a60cc09f5de3e.zip
Quasi-comprehensive BigDecimal soundness/correctness fix.
This fixes issues SI-6153, SI-6173, SI-6456, SI-6699, and SI-8116, along with a number of other similar possible issues. Relevant changes include * Changes to avoid heap explosion when working with BigInt - to isWhole - to hashCode - to equals - to BigInt's equals * Changes to enable equality matching hashCode - Only for sufficiently small BigInt - For identical values with different precision * Changes to isValidDouble - Takes precision into account now - New methods added to test whether even if the Double is not represented exactly, it's a representation of a certain type - New companion methods added to allow intended expansion of Double (binary/decimal difference) * Changes to constructor - Null arguments are not allowed (these can throw NPEs later at awkward/unexpected times) * New JUnit test to test all these things * Fixed existing tests to expect new behavior * Modified scaladocs to explain the issues * Deprecated problematic methods * Made application of MathContext more consistent (it is where you expect it and not where you don't) These changes are coordinated, for the most part, hence the monolithic commit.
Diffstat (limited to 'test/files/run/bigDecimalTest.check')
-rw-r--r--test/files/run/bigDecimalTest.check2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/bigDecimalTest.check b/test/files/run/bigDecimalTest.check
index 6d11c23fcd..36db6aaafe 100644
--- a/test/files/run/bigDecimalTest.check
+++ b/test/files/run/bigDecimalTest.check
@@ -3,4 +3,4 @@
0
0
0
-14
+15