summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Deprecation patrol.Paul Phillips2011-03-163-7/+7
| | | | | | | | | | | 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.
* Leveraged having a place to put some useful imp...Paul Phillips2011-03-151-0/+7
| | | | | | | | | | | | | | | Leveraged having a place to put some useful implicits which we sensibly are reluctant to introduce in the default scope. The test case pretty much sums it up. import Ordering.Implicits._ import Numeric.Implicits._ def f1[T: Numeric](x: T, y: T, z: T) = x + y + z def f2[T: Ordering](x: T, y: T, z: T) = if (x < y) (z > y) else (x < z) No review.
* Closes #3838. Review by prokopec.Philipp Haller2011-03-152-0/+16
|
* Slight tweak to case class deprecation message,...Paul Phillips2011-03-151-3/+3
| | | | | Slight tweak to case class deprecation message, no review.
* Addresses the issues swirling around Double.Eps...Paul Phillips2011-03-151-2/+2
| | | | | | | | | | | Addresses the issues swirling around Double.Epsilon and friends which were battled out in more than one venue and then aptly summarized by retronym in #3791. Thanks to Simon Ochsenreither for submitting a patch; I wasn't able to use too much of it because the source code for these types is generated, but effort is always appreciated. Closes #3791, and I'm tired and I'd hate to blow this one at this late date: review by rytz.
* 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.
* Closes #4163. no reviewHubert Plociniczak2011-03-142-0/+15
|
* new test.Martin Odersky2011-03-142-0/+29
|
* Changed Super to fix #4300Martin Odersky2011-03-141-1/+1
|
* 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.
* 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/+1
| | | | | | | 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
|
* Fixes underlying "...Martin Odersky2011-03-051-0/+8
|
* 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-0/+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