summaryrefslogtreecommitdiff
path: root/test/files/run
Commit message (Collapse)AuthorAgeFilesLines
* One hundred! One hundred times slower on window...Paul Phillips2011-03-211-1/+1
| | | | | | One hundred! One hundred times slower on windows! Ah, ha, ha! Adjusted test case, no review.
* Fix for a big bug in lastIndexOfSlice and some ...Paul Phillips2011-03-192-0/+122
| | | | | | | Fix for a big bug in lastIndexOfSlice and some latent negative index bugs in both that and indexOfSlice. This stuff is taxing. Closes #4348, no review.
* Fix for a slice related array view regression.Paul Phillips2011-03-191-0/+11
|
* Some boundary conditions in range.Paul Phillips2011-03-191-0/+14
| | | | | | | infix implicits to Integral and Fractional. As a bonus this patch knocked 10,000 long boxings off a specialized test. Who knew. Closes #4308, #4321, review by community.
* Little tweak for failing test, no review.Paul Phillips2011-03-181-1/+1
|
* Removing toPar* methods, since we've agreed the...Aleksandar Pokopec2011-03-183-43/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing toPar* methods, since we've agreed they're difficult to: - underestand - maintain Also, changed the docs and some tests appropriately. Description: 1) Every collection is now parallelizable - switch to the parallel version of the collection is done via `par`. - Traversable collections and iterators have `par` return a parallel - collection of type `ParIterable[A]` with the implementation being the - representative of `ParIterable`s (currently, `ParArray`). Iterable - collections do the same thing. Sequences refine `par`'s returns type - to `ParSeq[A]`. Maps and sets do a similar thing. The above means that the contract for `par` changed - it is no longer guaranteed to be O(1), nor reflect the same underlying data, as was the case for mutable collections before. Method `par` is now at worst linear. Furthermore, specific collection implementations override `par` to a more efficient alternative - instead of copying the dataset, the dataset is shared between the old and the new version. Implementation complexity may be sublinear or constant in these cases, and the underlying data structure may be shared. Currently, these data structures include parallel arrays, maps and sets, vectors, hash trie maps and sets, and ranges. Finally, parallel collections implement `par` trivially. 2) Methods `toMap`, `toSet`, `toSeq` and `toIterable` have been refined for parallel collections to switch between collection types, however, they never switch an implementation from parallel to sequential. They may or may not copy the elements, as is the case with sequential variants of these methods. 3) The preferred way to switch between different collection types, whether maps, sets and seqs, or parallel and sequential, is now via use of methods `toIterable`, `toSeq`, `toSet` and `toMap` in combination with `par` and `seq`. Review by odersky.
* close #4041. review by extemporeLukas Rytz2011-03-182-0/+9
|
* Disabled test not actually doing anything anywa...Paul Phillips2011-03-181-40/+0
| | | | | Disabled test not actually doing anything anyway, no review.
* Always forget that checking system properties c...Paul Phillips2011-03-172-1/+41
| | | | | | | | | Always forget that checking system properties causes exceptions in applets and such. Made the system property wrapper wrap its access checks in some more wrapping. I spent a long time trying to write a test for the security manager but it's hopeless without knowing all the details of the test environment. Closes #4346, no review.
* Deprecation patrol.Paul Phillips2011-03-161-5/+5
| | | | | | | | | | | warnings due to my changing a map from mutable to immutable (which ought to be the good direction) because "def update" still lingers on immutable maps. I counted the days elapsed since it was marked for death (before 2.8.0) and added in the bugliness of what I was looking at and bid it farewell. Now removed: def update on immutable maps. No review.
* Various chronic annoyances with the repl addres...Paul Phillips2011-03-156-0/+134
| | | | | | | | | | | | | | | | Various chronic annoyances with the repl addressed. Much improved transcript pasting. Now goes back in time to fix the transcript if it contains self-referential "res0, res1" etc. so that it works as it originally did. Shows which commands it is running, and places the commands with their result in a manner suitable for framing. Also, a new :paste command which accepts input up to ctrl-D, so you can enter companions without gyrations, or code from people who write in a repl unfriendly fashion by putting their curly braces on the next line (I'm looking at you mark harrah) or you name it, it's not picky. No review.
* new test.Martin Odersky2011-03-142-0/+29
|
* Raised the threshold for the test looking at vi...Paul Phillips2011-03-141-2/+2
| | | | | | | | Raised the threshold for the test looking at view performance. I guess if views are only 50x as slow on windows that's still a lot better than 100,000. (The real issue is more like "it's windows" plus "it's windows running on virtualbox".) No review.
* A small addition to the library to address some...Paul Phillips2011-03-121-0/+50
| | | | | | | | | | | A small addition to the library to address something bugging me forever. It's a light interface to system properties. It's not intended to solve all property issues for all time, only to greatly improve on the overly ad-hoc ways things are presently done. Feedback welcome. Sorry it's coming in this late but it arises from writing the tools to fix the bugs to allow that release to happen. That's nature's circle of bugs. Review by community.
* Fixed up the regression I slipped in with slice.Paul Phillips2011-03-121-0/+8
| | | | | for pointing me toward the problem. No review.
* A patch for views. Most relevant change:Paul Phillips2011-03-114-2/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Almost all view classes now list parents like trait Appended[B >: A] extends super.Appended[B] with Transformed[B] instead of the former trait Appended[B >: A] extends Transformed[B] with super.Appended[B] because as it was, the implementation of foreach in TraversableViewLike#Transformed was repeatedly trumping overrides found in e.g. IterableLike. This change was not without its own consequences, and much of the rest of the patch is dealing with that. A more general issue is clearly revealed here: there is no straightforward way to deal with trait composition and overrides when some methods should prefer B over A and some the reverse. (It's more like A through Z in this case.) That closes #4279, with some views being five orders of magnitude slower than necessary. There is a test that confirms they'll stay performance neighbors. In the view classes (Zipped, Mapped, etc.) I attended to them with comb and brush until they were reasonably consistent. I only use "override" where necessary and throw in some "final" in the interests of trying to anchor the composition outcome. I also switched the newSliced, newZipped, etc. methods to use early init syntax since a number have abstract vals and I found at least one bug originating with uninitialized access. There was a piece of a parallel collections scalacheck test failing, which I disabled out of expedience - am emailing prokopec. There is plenty of work left to do but paulp must get back to other 2.9 issues. This is the Zurich->SF airplane patch. No review.
* Adding special take and drop for numeric ranges...Aleksandar Pokopec2011-03-101-0/+13
| | | | | | | | Adding special take and drop for numeric ranges, and a test. Parallel numeric ranges are added, but currently disabled. Review by extempore.
* An overhaul of slice and related implementation...Paul Phillips2011-03-081-0/+13
| | | | | | | | | | | An overhaul of slice and related implementations (primarily that is drop and take.) In the course of trying to get it working consistently (mostly with respect to negative indices, which were dealt with arbitrarily differently across the 25+ concrete implementations) I fixed various bugs. Closes #4288, no review.
* Fixes and closes #4013.Aleksandar Pokopec2011-03-073-0/+54
| | | | | No review.
* More signature fixes and tests and generally be...Paul Phillips2011-03-075-0/+26
| | | | | | | More signature fixes and tests and generally being more sophisticated about our primitive squashing. These signatures belong in world-class museums but we are their shepherds for now. Closes #4317, no review.
* More signature work arising from actually looki...Paul Phillips2011-03-072-9/+15
| | | | | | More signature work arising from actually looking at the signatures. Slightly improved the coverage of the tests. No review.
* And extempore's original plan carries the day: ...Paul Phillips2011-03-061-0/+15
| | | | | | | And extempore's original plan carries the day: null.## no longer throws an NPE. Took advantage of feature to simplify a bunch of sharp-sharp calculations. Closes #4311, no review.
* Changed class name from `Main` to `Test` in a f...Aleksandar Pokopec2011-03-051-1/+1
| | | | | Changed class name from `Main` to `Test` in a failing test case.
* Fixes #3641.Aleksandar Pokopec2011-03-041-0/+10
| | | | | Review by dragos.
* Fixed several issues with finally, closes #3965.Iulian Dragos2011-03-042-7/+130
|
* Renamed some methods in icode exception handler...Iulian Dragos2011-03-042-1/+15
| | | | | | | Renamed some methods in icode exception handlers for clarification, fixed finalizers for 'return' inside a catch block. closes #4240. review by rytz.
* Some test massage which goes with the last commit.Paul Phillips2011-03-032-1/+6
| | | | | | One still broken. (Very sorry, all laptop and no servers makes jack a dull tester.) No review.
* Seem to have made a breakthrough with signature...Paul Phillips2011-03-033-0/+29
| | | | | | | | Seem to have made a breakthrough with signature correctness. Most of the remaining troubles were due to inherited members and their foreign identifiers, but I think I found a simple way to make everyone happy. Closes #4238, review by moors.
* Made Stream.collect collect instead of filter.Paul Phillips2011-03-021-4/+2
| | | | | | | Glad to see there was a test case; but we have to push harder when writing tests to include the key characteristics of the function being tested. No review.
* Another lap around the track with generic signa...Paul Phillips2011-03-022-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Another lap around the track with generic signatures. At the root of the issue reported in #4214 is our old friend (fondly remembered from the days of primitive equality) boxed/primitive unification. // scala trait T[A] { def f(): A } // the generic signature spec doesn't allow for parameterizing // on primitive types, so this cannot remain Char. However // translating it to Character, as was done, also has issues. class C extends T[Char] { def f(): Char = 'a' } // Note that neither of the signatures for f, the implementation // or the bridge method, matches the type parameter. Generic interfaces in class: T<java.lang.Character> Generic signatures: public char C.f() public java.lang.Object C.f() After this commit, primitive type parameters are translated into Object instead of the boxed type. It was martin's idea, so no review. Closes #4214.
* Break 9 tests, fix 9 tests, realize you broke t...Paul Phillips2011-02-283-15/+16
| | | | | | | Break 9 tests, fix 9 tests, realize you broke the test you checked in between +9 and -9. Fix that and generalize the repl tests a little. I think we're all the way there. No review.
* Test case closes #3613, no review.Paul Phillips2011-02-281-0/+22
|
* Altered a check for impl classes to look at the...Paul Phillips2011-02-283-0/+17
| | | | | | | | | Altered a check for impl classes to look at the name instead of the flags, since the flags are wrong. Obviously we should fix the flags or otherwise better address. Note that the test is well intentioned but doesn't actually fail with older versions; the crash is not easy to reproduce even when I simulate the whole repl. Review by dragos.
* Fixes and closes #4294.Aleksandar Pokopec2011-02-281-0/+9
| | | | | No review.
* Made mkString work correctly on views.Paul Phillips2011-02-251-0/+7
| | | | | about how to obtain a String and how not to. Closes #4297, no review.
* lazy val calls shouldn't be included in pure ex...Hubert Plociniczak2011-02-242-0/+39
| | | | | | | lazy val calls shouldn't be included in pure expressions in general. closes 4047. fixed also bug in optimizer (was eliminating a.foo call in the test). review by dragos
* Reversion of r24319 for causing #4291.Paul Phillips2011-02-244-2/+27
| | | | | in future attempts. Closes #4291, references #4214, no review.
* Fixed accidental test change.Martin Odersky2011-02-211-1/+1
|
* changed test output and comment, because mixed ...Martin Odersky2011-02-212-2/+2
| | | | | | changed test output and comment, because mixed in fields and methods no longer get a generic signature. Review by extempore.
* Renamed Application to App.Martin Odersky2011-02-21151-164/+164
|
* new test for Application behavior.Martin Odersky2011-02-211-0/+7
|
* Moved unlift to the Function companion object, ...Paul Phillips2011-02-201-2/+4
| | | | | | | | | | | | | | Moved unlift to the Function companion object, which might have been better in the first place. Had to make a minor change to genprod, and then I couldn't escape that unscathed. Finished the not very complete undertaking I found there to update the scaladoc. Lots of little changes to the generated text and code. I changed genprod to only put a unique stamp on Function0 so we can stop having a 100 file diff everytime an i is dotted somewhere. Closes #3825, no review.
* Rediscovering that transpose sometimes throws a...Paul Phillips2011-02-191-0/+12
| | | | | | | | | | | | Rediscovering that transpose sometimes throws an exception on irregular lists and sometimes returns an irregular result (depending on whether the first collection is the longest or not) indicated that this needs a better resolution than the status quo. Determination: as long as we're throwing an exception on any invalid input, we should throw an exception on all invalid input, so that's what it does now. I postpone any attempt to offer a variation accepting a "hole value". Closes #3597, review by community.
* Revert "Added missing string prefixes for names...Aleksandar Pokopec2011-02-151-3/+3
| | | | | | | | Revert "Added missing string prefixes for names of map and set collection classes." and related commits. No review.
* Fixing tests depending on map and set string re...Aleksandar Pokopec2011-02-141-3/+3
| | | | | Fixing tests depending on map and set string representations. No review.
* I chased a lot of ghosts before finding the rea...Paul Phillips2011-02-111-15/+17
| | | | | | | | | | | | | I chased a lot of ghosts before finding the real culprit for why partest failures have been unfailing. Process(Seq("bash", "-c", "exit 42")) ! // 42 Process(Seq("bash", "-c", "exit 42")) #> logFile ! // 0 That behavior is not yet fixed, but I altered partest not to use #> and fixed the test which should have been failing but wasn't. Closes #4227, no review.
* Guess I can't have a javap test with no javap.Paul Phillips2011-02-072-42/+0
|
* Added all the javap command line options to :ja...Paul Phillips2011-02-072-0/+42
| | | | | Added all the javap command line options to :javap. No review.
* After discovering #3376 was fixed I gave in and...Paul Phillips2011-02-042-0/+29
| | | | | | | | After discovering #3376 was fixed I gave in and tried to write a test. Now that the fiddling is over you can write repl tests without creating 5000 streams and settings. Look at test/files/run/bug3376.scala or jvm/interpreter.scala to see. Test case closes #3376, no review.
* I keep seeing huge simplifications available in...Paul Phillips2011-02-011-1/+1
| | | | | | | | | I keep seeing huge simplifications available in the repl. Lot of interesting features have come to town since it was first conceived. In this commit I give the internal names some tips on aesthetics, and put each line in its own package like civilized artificial constructs. No review.