summaryrefslogtreecommitdiff
path: root/test/files/jvm/bigints.scala
Commit message (Collapse)AuthorAgeFilesLines
* Quasi-comprehensive BigDecimal soundness/correctness fix.Rex Kerr2014-01-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Removing the code which has been deprecated sin...Paul Phillips2011-08-151-3/+3
| | | | | | | Removing the code which has been deprecated since 2.8.0. Contributed by Simon Ochsenreither, although deleting code is such fun one hesitates to call it a contribution. Still, we will. Closes SI-4860, no review.
* Removes SUnit (long deprecated!) from the stand...Paul Phillips2011-05-191-29/+20
| | | | | | | | | | | | Removes SUnit (long deprecated!) from the standard library. the relatively small number of partest tests in Scala's suite that were still using SUnit now either just use regular asserts, or they print stuff that partest checks with a .check file. Also fixed some bad indentation, removed ancient useless-looking commented-out code, etc. Contributed by Seth Tisue (way to go seth) no review.
* Reverted the BigDecimal implicits added for tic...Paul Phillips2009-10-051-3/+3
| | | | | Reverted the BigDecimal implicits added for ticket #1813.
* [no content change] Fixed all SVN properties: m...Gilles Dubochet2009-09-241-1/+0
| | | | | | | | [no content change] Fixed all SVN properties: mimes, EOL, executable. Id expansion is consistently enabled for Scala/Java/C# sources in 'src/' and consistently disabled and removed from everywhere else: there should not be any dead Id tags anymore.
* More equality shenanigans.Paul Phillips2009-06-211-4/+0
| | | | | | | and the various Int types all use different hashCode algorithms. This means there is very broken behavior afoot among the types. I see no option but to make numeric equals significantly less tricky.
* fixed ticket #1813 (BigDecimal implicits)michelou2009-03-231-33/+60
|
* build now also works on Java 1.4 (uses RetroWea...michelou2008-02-191-1/+1
| | | | | build now also works on Java 1.4 (uses RetroWeaver)
* added class BigDecimalmichelou2008-02-061-5/+30
|
* Refactored portability supportmihaylov2006-11-011-6/+5
|
* Moved Java-specific tests to test/files/jvm/mihaylov2006-10-101-0/+14