diff options
author | Paul Phillips <paulp@improving.org> | 2010-09-28 00:51:25 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-09-28 00:51:25 +0000 |
commit | 9c0e58c48da4cdbae7c96ef45fc15cd7aff4301f (patch) | |
tree | 857d48a844aa0479863f79c2a991984ac6a0104f /test/files/run | |
parent | a56c33b6a470939a1396015972f09e19dc493245 (diff) | |
download | scala-9c0e58c48da4cdbae7c96ef45fc15cd7aff4301f.tar.gz scala-9c0e58c48da4cdbae7c96ef45fc15cd7aff4301f.tar.bz2 scala-9c0e58c48da4cdbae7c96ef45fc15cd7aff4301f.zip |
Cleaning up the contents of test.
including "CheckEither", written against scalacheck 1.2 in the year 471
AD. Removed all the duplicates I could find, mostly between pending
and files. Renamed a bunch of tests so they wouldn't look like likely
duplicates next time around. Nominated somebody else to do this once in
a while.
No review.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/bug3150.scala | 10 | ||||
-rw-r--r-- | test/files/run/lazy-override-run.check (renamed from test/files/run/lazy-override.check) | 0 | ||||
-rw-r--r-- | test/files/run/lazy-override-run.scala (renamed from test/files/run/lazy-override.scala) | 0 | ||||
-rw-r--r-- | test/files/run/lists-run.scala (renamed from test/files/run/lists.scala) | 0 | ||||
-rw-r--r-- | test/files/run/t2316_run.scala (renamed from test/files/run/t2316.scala) | 0 |
5 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/bug3150.scala b/test/files/run/bug3150.scala new file mode 100644 index 0000000000..034703b5f7 --- /dev/null +++ b/test/files/run/bug3150.scala @@ -0,0 +1,10 @@ +object Test { + case object Bob { override def equals(other: Any) = true } + def f(x: Any) = x match { case Bob => Bob } + + def main(args: Array[String]): Unit = { + assert(f(Bob) eq Bob) + assert(f(0) eq Bob) + assert(f(Nil) eq Bob) + } +} diff --git a/test/files/run/lazy-override.check b/test/files/run/lazy-override-run.check index a8f658d7b5..a8f658d7b5 100644 --- a/test/files/run/lazy-override.check +++ b/test/files/run/lazy-override-run.check diff --git a/test/files/run/lazy-override.scala b/test/files/run/lazy-override-run.scala index e5884257a8..e5884257a8 100644 --- a/test/files/run/lazy-override.scala +++ b/test/files/run/lazy-override-run.scala diff --git a/test/files/run/lists.scala b/test/files/run/lists-run.scala index 6c9b55961e..6c9b55961e 100644 --- a/test/files/run/lists.scala +++ b/test/files/run/lists-run.scala diff --git a/test/files/run/t2316.scala b/test/files/run/t2316_run.scala index a3d5bf890b..a3d5bf890b 100644 --- a/test/files/run/t2316.scala +++ b/test/files/run/t2316_run.scala |