summaryrefslogtreecommitdiff
path: root/test/files/scalacheck/treeset.scala
Commit message (Collapse)AuthorAgeFilesLines
* Prepare upgrade to scalacheck 1.11.Adriaan Moors2013-11-201-1/+1
| | | | | | | | | | | | | | | | Our scalacheck tests now compile against 1.10.1 and 1.11.0. They pass on 1.10.1, but fail on 1.11.0. Once (that)[https://github.com/rickynils/scalacheck/issues/79]'s fixed, and 1.11.1 released, we should be able to upgrade to it by simply changing scalacheck.version.number in versions.properties. The changes are mostly removing dead code (e.g., consolereporter business). Of interest: the type ascription for `oneOf`. I haven't quite investigated, but something seems to have changed between 1.10.1 and 1.11.0 that caused a different overload to be picked without the type ascription. Probably not a scalac bug, just a scalacheck api change.
* Cull extraneous whitespace.Paul Phillips2013-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | One last flurry with the broom before I leave you slobs to code in your own filth. Eliminated all the trailing whitespace I could manage, with special prejudice reserved for the test cases which depended on the preservation of trailing whitespace. Was reminded I cannot figure out how to eliminate the trailing space on the "scala> " prompt in repl transcripts. At least reduced the number of such empty prompts by trimming transcript code on the way in. Routed ConsoleReporter's "printMessage" through a trailing whitespace stripping method which might help futureproof against the future of whitespace diseases. Deleted the up-to-40 lines of trailing whitespace found in various library files. It seems like only yesterday we performed whitespace surgery on the whole repo. Clearly it doesn't stick very well. I suggest it would work better to enforce a few requirements on the way in.
* SI-7590 TreeSet should fail fast if Ordering is nullSimon Ochsenreither2013-06-251-0/+3
| | | | | | | | | | While migrating scala.tools.nsc.util.TreeSet to scala.collection.mutable.TreeSet, I messed up initialization order and realized that TreeSet accepts null as an Ordering and only fails much later. This change makes mutable.TreeSet and immutable.TreeSet fail immediately.
* Custom implementations of drop/take/slice.Erik Rozendaal2012-01-231-2/+16
| | | | This mainly helps performance when comparing keys is expensive.
* Optimized implementation of TreeMap/TreeSet#to method.Erik Rozendaal2012-01-151-0/+18
| | | | Performance of `to` and `until` is now the same.
* Fix silly copy-paste error.Erik Rozendaal2012-01-071-9/+9
|
* Tests for takeWhile/dropWhile/span.Erik Rozendaal2012-01-071-0/+15
| | | | Also simplified implementation of span to just use splitAt.
* Optimize foreach and iterators.Erik Rozendaal2012-01-041-0/+16
|
* Added some tests for TreeMap/TreeSet.Erik Rozendaal2011-12-281-0/+89