summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Looks like another java5/java6 difference gets ...Paul Phillips2011-03-281-5/+13
| | | | | | Looks like another java5/java6 difference gets me on a test. At least this time I was looking for that. No review.
* Expanding the test which tries to use the colle...Paul Phillips2011-03-281-9/+60
| | | | | | Expanding the test which tries to use the collections from java. No review.
* Added some implicitNotFound annotations to comm...Paul Phillips2011-03-282-2/+2
| | | | | | | Added some implicitNotFound annotations to commonly used classes, and some documentation to Manifest. (Said documentation is invisible for the moment due to #4404.) No review.
* Learned an interesting lesson about having an i...Paul Phillips2011-03-281-1/+1
| | | | | | | | Learned an interesting lesson about having an implicit object with a "def apply(x: Any): List[String]" method imported into power mode. Let's just say this is not advised. This and other rough edges eliminated from power mode, no review.
* Fix for linked lists closes #4080 and proves my...Paul Phillips2011-03-273-4/+15
| | | | | | | | | | | | | | | | | | | | | | | Fix for linked lists closes #4080 and proves my desire not to ship obviously broken code is even greater than my will to hold out for any help. I threw in a free fix for this which I noticed while in there. scala> scala.collection.mutable.LinkedList[Int]().head res0: Int = 0 Also was reminded how useless tests can be: val ten = DoubleLinkedList(1 to 10: _*) ten.insert(DoubleLinkedList(11)) // Post-insert position test require(ten.last == 11) Fortunately a test confirming buggy behavior still serves a purpose by breaking when you fix the bug which allowed it to pass, thus letting you fix the broken test too. Life's (very) little compensations. Linked list code should still be presumed broken. No review.
* [scaladoc] Cleanup tests. No review.Kato Kazuyoshi2011-03-261-71/+35
|
* [scaladoc] Add a test for #4180. No review.Kato Kazuyoshi2011-03-252-0/+9
|
* [scaladoc] Stop wiki syntax parsing inside HTML.Kato Kazuyoshi2011-03-253-8/+63
|
* I guess windows can show a < 500x difference an...Paul Phillips2011-03-251-2/+2
| | | | | | | | | I guess windows can show a < 500x difference and still give us confidence there isn't a 100,000x difference. Testing situation continues to confound and amaze. Trying to make 4279 not fail on windows, one more time and I will delete it and burn the bodies. No review.
* Added a temporary fix for #4351, but disabled i...Aleksandar Pokopec2011-03-244-57/+21
| | | | | | | | | | | | | Added a temporary fix for #4351, but disabled it because the extend specialized class with nonspecialized type-parameters is used in the stdlib already. Disabling scala.parallel package, adding the currently disabled scala.concurrent package which will be implemented in some of the next releases. Review by phaller.
* Moved failing tests to pending after having dia...Martin Odersky2011-03-246-0/+0
| | | | | | | | Moved failing tests to pending after having diagnosed that the only problem is a difference in output between Java 1.5 and 1.6 reflection libraries. Can we moved back once that's fixed. For now, it's more important to ghet the build back.
* Changed App-using tests to use main() to see if...Paul Phillips2011-03-243-19/+25
| | | | | | Changed App-using tests to use main() to see if that's our trouble. No review.
* Looks like I accidentally committed a test log,...Paul Phillips2011-03-241-2/+0
| | | | | Looks like I accidentally committed a test log, no review.
* Restoring my higher-kinded-Array signature chec...Paul Phillips2011-03-242-0/+6
| | | | | | Restoring my higher-kinded-Array signature check which martin callously blew away while fixing all our other problems. Review by odersky.
* Spiced up the signature test infrastructure a b...Paul Phillips2011-03-2310-54/+148
| | | | | | Spiced up the signature test infrastructure a bunch, wrote some more tests, restored the tests in pending. No review.
* Moving signature tests to pending, because they...Martin Odersky2011-03-234-0/+0
| | | | | | Moving signature tests to pending, because they operate under wrong assumptions now that mixed in members are bridges. Review by extempore.
* Simple test case to see whether Java understand...Martin Odersky2011-03-231-0/+16
| | | | | | Simple test case to see whether Java understands mixed in signatures. This should be extended with more cases. Review by extempore.
* My early attempts to implement non-integral ran...Paul Phillips2011-03-231-0/+7
| | | | | | | | | | | | | | My early attempts to implement non-integral ranges in a way which was useful without having lots of floating point traps were less than successful. One of the bigger backfires is that the requirement not to round (trying, and failing anyway, to avoid surprises with methods like "contains") inflicts runtime errors. The simple way to improve this, which seems a good idea anyway, is to make the default math context something less inclined to exceptions. Default BigDecimal mc is now DECIMAL128. References #1812, #4201 and puts #4201 back to normal priority. Review by community.
* Adding some tests for #3651.Aleksandar Pokopec2011-03-227-58111/+28
| | | | | No review.
* Implementing foreach to work in parallel in Par...Aleksandar Pokopec2011-03-228-20/+58115
| | | | | | | | | | | | Implementing foreach to work in parallel in ParIterableLike. Doing a bunch of refactoring around in the collection framework to ensure a parallel foreach is never called with a side-effecting method. This still leaves other parts of the standard library and the compiler unguarded. No review.
* closes #4345.Adriaan Moors2011-03-221-0/+7
|
* closes #4205: quick&dirty fix to force loading ...Adriaan Moors2011-03-222-0/+7
| | | | | | closes #4205: quick&dirty fix to force loading of info's and thus avoid order-dependency until we fix unsafeTypeParams for good. no review
* [scaladoc] Closes #4366. Review by pedrofurla.Kato Kazuyoshi2011-03-223-0/+64
|
* Not yet learned my lesson about partest and emp...Paul Phillips2011-03-225-0/+0
| | | | | | | | | | Not yet learned my lesson about partest and empty directories. Rather than reapply that bandaid, went after partest. Attempts to make partest ignore empty directories. Discover directory tests aren't run when the command line tool is used, make them run like everyone else. Find more tests which due to misplacement are silently ignored, move them into tested locations. No review.
* Oh the irony, disabling the failing test made t...Paul Phillips2011-03-222-0/+0
| | | | | | | Oh the irony, disabling the failing test made the build fail, because another test is hardcoded to use its paths. Disabled that test too. We'll put humpty back together again. No review.
* We need a successful build, not sure why this h...Paul Phillips2011-03-213-58111/+0
| | | | | | We need a successful build, not sure why this hasn't been disabled yet. Disabled failing coder test, no review.
* [I'm laptop only so there's some chance this wi...Paul Phillips2011-03-216-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | [I'm laptop only so there's some chance this will incur temporary breakage, but it needs committing.] Heading off gratuitous complications which haven't yet shipped, I eliminated the -jar startup option in favor of doing what we already do, figuring it out. So now all these things work. scala foo/bar.scala // if file is a script or has one main method scala foo.Bar // if it has a legal main method scala foo.jar // if it has a legal MainClass attribute Also changed "-savecompiled" to "-save" and given scala source called foo.scala, generate foo.jar rather than foo.scala.jar. Cleaned up a bunch of related code and further polished the scala startup message. And unbroke choice settings and improved that error too, which closes #3849. While trying to write a test for the choice setting, was reminded that partest just discards invalid flags files. Made it fail instead, which closes #3712. Fixed the new failures that revealed. No review.
* 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.
* [scaladoc] Add a test for #4306.Kato Kazuyoshi2011-03-212-10/+19
|
* Closes #4202 again, closes #4363.Hubert Plociniczak2011-03-212-1/+20
|
* [scaladoc] Add a test for #4361.Kato Kazuyoshi2011-03-211-0/+22
|
* [scaladoc] Add HtmlFactoryTest and reorganize d...Kato Kazuyoshi2011-03-214-0/+108
| | | | | | [scaladoc] Add HtmlFactoryTest and reorganize directory structure. Reviewed by pedrofurla.
* Restored erasure warning for isInstanceOf tests.Paul Phillips2011-03-203-0/+8
| | | | | 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
|
* I'm going to assume the patch I dropped off fiv...Paul Phillips2011-03-192-0/+16
| | | | | | | I'm going to assume the patch I dropped off five months ago for #3938 was merely overlooked. Fixes an issue with java types which extend inner classes. Closes #3938, review by odersky.
* Prevent a divergent implicit from terminating i...Paul Phillips2011-03-191-0/+15
| | | | | | | Prevent a divergent implicit from terminating implicit search, so that there can still be a winner, as endorsed by martin over a cheese plate. Closes #3883, review by dmharrah.
* Fix for crasher with Class objects.Paul Phillips2011-03-191-0/+31
| | | | | extempore. References #4305, no review.
* Removed long deprecated and obscure CloneableCo...Paul Phillips2011-03-191-0/+9
| | | | | | | | | | | | | Removed long deprecated and obscure CloneableCollection. Discovered we have a scala.collection.mutable.Cloneable which does not extend java.lang.Cloneable, which is why Array is not considered cloneable. That seems wrong, but to be conservative I gave Array the Cloneable interface without altering the scala trait. Also, if @serializable is deprecated in favor of Serializable, should not @cloneable be deprecated analogously? Closes #4307, and a commit-question review by rytz.
* Some boundary conditions in range.Paul Phillips2011-03-193-1/+31
| | | | | | | 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-0/+0
| | | | | Disabled test not actually doing anything anyway, no review.
* Reenabled the commented out bits of the test fo...Paul Phillips2011-03-172-3/+3
| | | | | Reenabled the commented out bits of the test for #1642. No review.
* Always forget that checking system properties c...Paul Phillips2011-03-173-7/+46
| | | | | | | | | 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-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.