summaryrefslogtreecommitdiff
path: root/test/files/run
Commit message (Collapse)AuthorAgeFilesLines
* If I work on this patch any longer without chec...Paul Phillips2010-04-0511-132/+42
| | | | | | | | | | | | | | | | If I work on this patch any longer without checking in I will go stark raving mad. It is broken up into a couple pieces. This one is the changes to test/. It includes fixing a bunch of tests, removing deprecated constructs, moving jars used by tests to the most specific plausible location rather than having all jars on the classpath of all tests, and some filesystem layout change (continuations get their whole own srcpath.) This would be the world's most tedious review, so let's say no review. [Note: after this commit, I doubt things will build very smoothly until the rest of the partest changes follow. Which should only be seconds, but just in case.]
* closes #3242. review by community.Tiark Rompf2010-04-023-0/+84
|
* close #3178. review by communityLukas Rytz2010-04-011-0/+8
|
* closes #3203, overriding more of the Traversabl...Tiark Rompf2010-03-311-5/+5
| | | | | | | closes #3203, overriding more of the TraversableLike methods. also tightened access privileges to internal fields and methods. review by community.
* While working on partest discovered that Compil...Paul Phillips2010-03-251-2/+1
| | | | | | | | | | | | | | | | | | | While working on partest discovered that CompilerCommand ignores half its constructor arguments and a couple dozen places blithely pass it those arguments as if they're being used. Then there were setups like this: class OfflineCompilerCommand( arguments: List[String], settings: Settings, error: String => Unit, interactive: Boolean) extends CompilerCommand(arguments, new Settings(error), error, false) Hey offline compiler command, why throw away the perfectly good settings you were given? Ever heard 'reduce, reuse, recycle'? How did you ever work... or do you? No review.
* Apparently I can't fix a test case to save my l...Paul Phillips2010-03-241-1/+1
| | | | | Apparently I can't fix a test case to save my life. No review.
* Fixed a test case I broke with the collect rename.Paul Phillips2010-03-241-3/+3
|
* Fixed an issue with no-parameter-list methods n...Paul Phillips2010-03-241-0/+2
| | | | | | Fixed an issue with no-parameter-list methods not being elided. No review.
* Fix and test case for #3169.Paul Phillips2010-03-231-0/+9
|
* Although it was working fine, a test case for @...Paul Phillips2010-03-233-0/+16
| | | | | | Although it was working fine, a test case for @elidable to make sure that state of affairs continues. No review.
* Added test case for #3186. Closes #3186.Philipp Haller2010-03-232-0/+8
|
* Went ahead and implemented classpaths as descri...Paul Phillips2010-03-231-2/+2
| | | | | | | | | | | | | | | | | | | | | Went ahead and implemented classpaths as described in email to scala-internals on the theory that at this point I must know what I'm doing. ** PUBLIC SERVICE ANNOUNCEMENT ** If your code of whatever kind stopped working with this commit (most likely the error is something like "object scala not found") you can get it working again with either of: passing -usejavacp on the command line set system property "scala.usejavacp" to "true" Either of these will alert scala that you want the java application classpath to be utilized by scala as well. Review by community.
* During my last look at r21224 I noticed what mu...Paul Phillips2010-03-212-0/+14
| | | | | | | | | During my last look at r21224 I noticed what must be a long standing bug in Array.update handling. Fixing this probably never to be noticed corner case (see bug3175.scala) seduced me into drumming out some duplication. At least we got some nice commenting out of it. Review by dubochet.
* Some work on the Array methods as they manifest...Paul Phillips2010-03-202-0/+52
| | | | | | | Some work on the Array methods as they manifest in refinement types: tightening when Array code is generated and also what code is generated. Review by dubochet.
* Returning to the thrilling world of equality an...Paul Phillips2010-03-191-0/+2
| | | | | | | | Returning to the thrilling world of equality and hashCodes now that Any.## is a reality. Moved the hash functions from Predef to ScalaRunTime, and made what appears to be an optimization to equals by not losing the result of an instanceof test. Review by community.
* More fun with -Xmigration.Paul Phillips2010-03-193-15/+15
| | | | | | | | | | | | | | | | | | to BufferLike (++ and similar now create a new collection.) Removed MapLikeBase. Annotated all the methods in mutable.{ Map, Set } which mutated in-place in 2.7 to note that they create new collections, and implemented same. At this point the only +/- like method which mutates in place which I am aware of is BufferLike.+ (see source comment for my observations.) Also tweaked some collections return types as necessitated by these changes, such as mutable.Set.clone() now returning "This" rather than mutable.Set[A]. References #3089, closes #3179. Review by odersky.
* new version of decode that does not need a length.Martin Odersky2010-03-191-0/+39
|
* closes #3112. no review.Tiark Rompf2010-03-162-0/+15
|
* added test case for #2417. no reviewTiark Rompf2010-03-162-0/+89
|
* new immutable.HashSet. review by community.Tiark Rompf2010-03-151-1/+1
|
* Leveraged -Xmigration to burn off some warts wh...Paul Phillips2010-03-151-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Leveraged -Xmigration to burn off some warts which arose in the new collections. Warnings put in place for behavioral changes, allowing the following. 1) Buffers: create new collections on ++ and -- like all the other collections. 2) Maps: eliminated never-shipped redundant method valuesIterable and supplied these return types: def keys: Iterable[A] def keysIterator: Iterator[A] def values: Iterable[B] def valuesIterator: Iterator[B] def keySet: Set[A] I concluded that keys should return Iterable because keySet also exists on Map, and is not solely in the province of Maps even if we wanted to change it: it's defined on Sorted and also appears in some Sets. So it seems sensible to have keySet return a Set and keys return the more general type. Closes #3089, #3145. Review by odersky.
* Test case closes #751. No review.Paul Phillips2010-03-141-0/+6
|
* Closes #3158. No review necessary.Martin Odersky2010-03-112-0/+10
|
* Temporarily disabling failing test until I can ...Paul Phillips2010-03-093-25/+0
| | | | | | Temporarily disabling failing test until I can finish my partest work. No review.
* new testsMartin Odersky2010-03-082-0/+10
|
* Closes #3026. Review by extempore.Martin Odersky2010-03-083-0/+25
|
* - new immutable HashMap implementation based on...Tiark Rompf2010-03-071-6/+6
| | | | | | | | | - new immutable HashMap implementation based on a hash trie. this is the first iteration, more optimizations will be added later. - updated test cases to reflect new ordering of elements - made Map.empty and Set.empty singletons, deprecating classes Map.EmptyMap and Set.EmptySet Review by extempore, odersky.
* Fixes for #3126.Paul Phillips2010-03-061-0/+9
| | | | | | null, and thrown MatchErrors don't NPE trying to stringify null. No review.
* Fix for #3136 by reverting the line in r18184 w...Paul Phillips2010-03-051-19/+0
| | | | | | | | | Fix for #3136 by reverting the line in r18184 which caused this and other regressions. The downside is that the #1697 test case no longer passes, but protracted shrug because it wasn't entirely fixed anyway. Review by moors. (Can you triangulate your way to a patch where both work simultaneously? It's today's bonus challenge!)
* Test case for case class equality.Paul Phillips2010-03-051-0/+36
|
* ScalaRunTime method to perform sameElements as ...Paul Phillips2010-03-051-0/+15
| | | | | | ScalaRunTime method to perform sameElements as fix for #2867. Review by odersky.
* Enabled scalacheck tests.Paul Phillips2010-03-011-1/+1
| | | | | | | | what must be legacy scalatest.* properties to partest.*, boldly assuming that the fact that partest is pretty much unusable outside of scalac means there are no users outside of scalac who might be disrupted by eliminating old property names. Review by community.
* Fixed specialized pattern matches.Iulian Dragos2010-02-283-0/+72
| | | | | specialized implementations.
* Added ## method to Any as our scala hashCode me...Paul Phillips2010-02-281-0/+15
| | | | | | | | | | | | | | Added ## method to Any as our scala hashCode method which provides consistent answers for primitive types. And I'm sure we're all tired of new starrs, but it's hard to add a method to Any without one. This patch only brings ## into existence, but nothing calls it yet. // some true assertions scala> assert(5.5f.## == 5.5f.hashCode) scala> assert(5.0f.## != 5.0f.hashCode && 5.0f.## == 5L.##) No review. (Already reviewed by odersky.)
* Quite a lot more work on XML equality than I ca...Paul Phillips2010-02-261-1/+1
| | | | | | | | | | | | | | | | | | Quite a lot more work on XML equality than I can properly justify spending time on, but you know how it is once you get started on something. This commit will likely break some code out there in the world but this is impossible to avoid if we are to achieve sane equality in trunk. For anyone who was relying upon the 2.7 equality behavior for scala.xml.* classes, using "xml_==" instead of "==" for comparisons will restore the old behavior. The standard == on xml elements now attempts to behave in such a way that symmetry and hashCode contracts will be preserved. It's probably not 100% there yet, but I can tell you this: it is closer today than it was yesterday. Review by community.
* Specialized types are not substituted inside ty...Iulian Dragos2010-02-225-0/+116
| | | | | | Specialized types are not substituted inside type arguments. Closes #3085, no review.
* Some deprecation patrol and minor cleanups.Paul Phillips2010-02-222-4/+4
|
* Some repl cleanups and debugging conveniences.Paul Phillips2010-02-211-1/+1
|
* Made NumericRange invariant again, plus test case.Paul Phillips2010-02-181-0/+3
|
* The first reasonably satisfying classpath commit.Paul Phillips2010-02-181-2/+3
| | | | | there with this one. Documentation to come. Review by community.
* Tighter pattern matching hits the street.Paul Phillips2010-02-181-1/+1
| | | | | | | | | | | | | is final and does not conform to the pattern, it will no longer compile. See all the exciting things you can no longer do: "bob".reverse match { case Seq('b', 'o', 'b') => true } // denied! "bob".toArray match { case Seq('b', 'o', 'b') => true } // rejected! final class Dunk def f3(x: Dunk) = x match { case Seq('b', 'o', 'b') => true } // uh-uh! And so forth. Review by odersky.
* Test file for last commit.Aleksandar Pokopec2010-02-171-0/+31
|
* More classpath work, and cleanups in the vicini...Paul Phillips2010-02-142-0/+36
| | | | | | | More classpath work, and cleanups in the vicinities of everything manipulating classpaths. Review by anyone willing to slog through the approximately dozen different ways the classpath can be influenced.
* `replaceSomeIn` method added.Aleksandar Pokopec2010-02-091-5/+6
|
* Unique's seeming victory is overruled by commit...Paul Phillips2010-02-044-6/+6
| | | | | | Unique's seeming victory is overruled by committee. It is "distinct", not "unique", wherein lies the nub. No review.
* A big push to make the interpreter easier to in...Paul Phillips2010-02-032-8/+6
| | | | | | | | | | | | A big push to make the interpreter easier to instantiate without having to dodge bullets. It shouldn't have to be any harder than this: scala> new scala.tools.nsc.Interpreter().evalExpr[Int]("5*5") res0: Int = 25 ...and now it isn't. Review by community.
* Striking while the iron is hot, renamed removeD...Paul Phillips2010-02-034-6/+6
| | | | | | | | | Striking while the iron is hot, renamed removeDuplicates to unique and deprecated removeDuplicates. The debate between distinct and unique was vigorous but unique won by a freckle. (Dark horse 'nub' was disqualified for taking performance enhancers.) The only thing which might need review is the choice of name, but review by odersky.
* Made sliding/grouped throw an exception when re...Paul Phillips2010-02-031-0/+13
| | | | | | Made sliding/grouped throw an exception when read past the end. Closes #3017.
* A compact tree printer, for primitives like mys...Paul Phillips2010-01-302-0/+45
| | | | | | | | | A compact tree printer, for primitives like myself who do all their debugging in the console and need extraneous information filtered out. New option: -Ycompact-trees. Supply that in conjunction with -Xprint:all and suddenly the output is a (relative) masterpiece of concision. Review by anyone who is game to review such a thing. Community?
* Removing defaultGetter field from TermSymbols.Lukas Rytz2010-01-282-0/+4
|