summaryrefslogtreecommitdiff
path: root/test/files
Commit message (Collapse)AuthorAgeFilesLines
* Fixes the broken test, introduced in the view p...Aleksandar Pokopec2011-03-111-8/+12
| | | | | | | Fixes the broken test, introduced in the view patch commit. No review.
* A patch for views. Most relevant change:Paul Phillips2011-03-115-10/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* One last build break and unbreak so I can be fo...Paul Phillips2011-03-081-0/+2
| | | | | | One last build break and unbreak so I can be fondly remembered as that guy who kept breaking the build. No review.
* 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.
* Modify BufferedSource to use a BufferedLineIter...Donna Malayeri2011-03-071-1/+1
| | | | | | | Modify BufferedSource to use a BufferedLineIterator to speed up line-by-line reads on large files. Updated testfile which used this class. Closes #4186. Review (of fft.check) by prokopec.
* Made the .opts file in presentation compiler te...Iulian Dragos2011-03-071-1/+2
| | | | | | Made the .opts file in presentation compiler tests be 'platform independent'. Paths are given in Unix notation. 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-077-6/+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.
* Raised the scariness of the case class deprecat...Paul Phillips2011-03-073-0/+17
| | | | | | | Raised the scariness of the case class deprecation message. (I hope you don't mind, hubert, I like writing scary messages.) Closes #4109 I suppose, 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.
* Closes #3987. Review by extempore.Martin Odersky2011-03-072-0/+19
|
* 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.
* Another corner involving generic signatures and...Paul Phillips2011-03-062-0/+6
| | | | | | | | Another corner involving generic signatures and java interop flushed out by seth tisue. Keep that detector fired up seth or the rebel alliance will surely be crushed. (In fact, I nominate you to write a test suite!) Closes #4317, no review.
* Re-enabling the disabled signature test along w...Paul Phillips2011-03-064-1/+42
| | | | | | | Re-enabling the disabled signature test along with changes which allow it to pass. Closes #4238 again, no review. (But would anyone like to expand the signature tests? Great idea, extempore!)
* Some naming clarifications and a test rewrite.Paul Phillips2011-03-061-7/+22
|
* 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.
* Reverting some recent signature code and tempor...Paul Phillips2011-03-043-41/+0
| | | | | | | Reverting some recent signature code and temporarily disabling a test so I can work this out without shattering the tranquility of the build. No review.
* Test case closes #1364, no review.Paul Phillips2011-03-032-0/+20
|
* 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.
* Added cycle detection to getParts.Paul Phillips2011-03-022-0/+16
|
* Another lap around the track with generic signa...Paul Phillips2011-03-026-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Long overdue rehaul of presentation compiler te...Iulian Dragos2011-03-012-15/+24
| | | | | | | | | | | | | | | | | Long overdue rehaul of presentation compiler tests. Added support for options file, and switched simple-tests to use the STARR library on the test classpath. Put any options you need passed to the presentation compiler in a file with the same name as the test, ending in '.opts'. Currently it's used to set the -bootclasspath for simple-tests. Check the contents of simple-tests.opts for all the options. IMPORTANT: when committing a new STARR, you need to check this test. Most likely, you *will* break it otherwise. review by extempore
* Break 9 tests, fix 9 tests, realize you broke t...Paul Phillips2011-02-284-26/+22
| | | | | | | 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.
* Fixing yon broken test.Paul Phillips2011-02-231-1/+2
| | | | | (only to make you aware of the commit message in r24263.)
* Closes #4202 and removes empty TreeHashMap (sup...Hubert Plociniczak2011-02-221-0/+7
| | | | | | Closes #4202 and removes empty TreeHashMap (superseded by HashMap implementation). No review
* Changes to startup.Paul Phillips2011-02-221-4/+8
| | | | | | | | | | | | | | default. The -toolcp option now works. -D and -J options are passed as arguments to the runner program as well as to the underlying JVM, because they may be needed for such things as fsc talking to a server compiler. Added a new Settings type for -D and -J options. Deleted some dead settings code. There are dummy settings for -toolcp and -nobootcp so they can be seen in the help output, which needs a big cleanup. 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-21262-283/+283
|
* Fixed a bug where newly introduced type paramet...Aleksandar Pokopec2011-02-211-0/+27
| | | | | | | | Fixed a bug where newly introduced type parameters didn't have all the substitutions done correctly. Fixes #4266. No review.
* 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.
* Observed that some historical issues with packa...Paul Phillips2011-02-204-10/+22
| | | | | | | | Observed that some historical issues with package objects no longer seem so issuey. In the interests of keeping the arbitrary limitations to a minimum, re-enabled case classes in package objects (see #2130, #3437.) Closes #3437, review by odersky.
* Based on the frequency with which I hear questi...Paul Phillips2011-02-205-1/+17
| | | | | | | | | | | | | | | | | Based on the frequency with which I hear questions about it and similar, this error message assumes too much understanding. scala> scala.collection.mutable.MultiMap(1, 2, 3) <console>:8: error: value MultiMap is not a member of package scala.collection.mutable Now it says: scala> scala.collection.mutable.MultiMap(1, 2, 3) <console>:8: error: object MultiMap is not a member of package scala.collection.mutable Note: trait MultiMap exists, but it has no companion object. No review.
* Test case closes #3137, no review.Paul Phillips2011-02-201-0/+17
|
* 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.
* Test case closes #3861, no review.Paul Phillips2011-02-181-0/+2
|
* Test case closes #2070. No review.Paul Phillips2011-02-182-0/+15
|