diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-04-25 17:24:41 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-04-25 17:24:41 +0200 |
commit | 4f47fba30f9408fee42c147ed7fdcc4105502b58 (patch) | |
tree | 9385b3d29fcf975beae3b5f2292bb37fe6fc0f4b | |
parent | daeee868956faaa92c4ea873e0c6b24b52202ee7 (diff) | |
download | scala-4f47fba30f9408fee42c147ed7fdcc4105502b58.tar.gz scala-4f47fba30f9408fee42c147ed7fdcc4105502b58.tar.bz2 scala-4f47fba30f9408fee42c147ed7fdcc4105502b58.zip |
updated tests now matches aren't translated if forInteractive
-rw-r--r-- | test/files/presentation/callcc-interpreter/Runner.scala | 4 | ||||
-rw-r--r-- | test/files/presentation/random.check | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/test/files/presentation/callcc-interpreter/Runner.scala b/test/files/presentation/callcc-interpreter/Runner.scala index 61b6efd50d..1ef3cf9025 100644 --- a/test/files/presentation/callcc-interpreter/Runner.scala +++ b/test/files/presentation/callcc-interpreter/Runner.scala @@ -1,5 +1,3 @@ import scala.tools.nsc.interactive.tests._ -object Test extends InteractiveTest { - settings.XoldPatmat.value = true // TODO: could this be running into some kind of race condition? sometimes the match has been translated, sometimes it hasn't -}
\ No newline at end of file +object Test extends InteractiveTest
\ No newline at end of file diff --git a/test/files/presentation/random.check b/test/files/presentation/random.check index 1b73720312..fce4b69fb3 100644 --- a/test/files/presentation/random.check +++ b/test/files/presentation/random.check @@ -4,8 +4,7 @@ askType at Random.scala(18,14) ================================================================================ [response] askTypeAt at (18,14) val filter: Int => Boolean = try { - case <synthetic> val x1: Int = java.this.lang.Integer.parseInt(args.apply(0)); - x1 match { + java.this.lang.Integer.parseInt(args.apply(0)) match { case 1 => ((x: Int) => x.%(2).!=(0)) case 2 => ((x: Int) => x.%(2).==(0)) case _ => ((x: Int) => x.!=(0)) |