diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/global-showdef.scala | 2 | ||||
-rw-r--r-- | test/files/run/patmatnew.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/global-showdef.scala b/test/files/run/global-showdef.scala index 0dbaba979d..c3ace590ed 100644 --- a/test/files/run/global-showdef.scala +++ b/test/files/run/global-showdef.scala @@ -54,7 +54,7 @@ object Bippy { val run = new compiler.Run() run.compileSources(List(src)) } - (output split "\\n").toList + output.linesIterator.toList } def showClass(name: String) = lines("-Yshow:typer", "-Xshow-class", name) def showObject(name: String) = lines("-Yshow:typer", "-Xshow-object", name) diff --git a/test/files/run/patmatnew.scala b/test/files/run/patmatnew.scala index 35b733d080..b212e10f8d 100644 --- a/test/files/run/patmatnew.scala +++ b/test/files/run/patmatnew.scala @@ -114,7 +114,7 @@ object Test { val foo2 = new Foo(2) def run() { val res = (foo1.Bar(2): Any) match { - case foo2.Bar(2) => false + case foo1.Bar(2) => true } assert(res) |