From 058d18cdf155ff739310227452cd20b6793b7461 Mon Sep 17 00:00:00 2001 From: michelou Date: Wed, 9 May 2007 15:27:27 +0000 Subject: renamed tests for contribs #460 and #461 --- test/files/run/bug1093.check | 1 + test/files/run/bug1093.scala | 9 +++++++++ test/files/run/bug1094.check | 1 + test/files/run/bug1094.scala | 11 +++++++++++ test/files/run/patseq.check | 1 - test/files/run/patseq.scala | 11 ----------- test/files/run/patunreachable.check | 1 - test/files/run/patunreachable.scala | 9 --------- 8 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 test/files/run/bug1093.check create mode 100644 test/files/run/bug1093.scala create mode 100644 test/files/run/bug1094.check create mode 100644 test/files/run/bug1094.scala delete mode 100644 test/files/run/patseq.check delete mode 100644 test/files/run/patseq.scala delete mode 100644 test/files/run/patunreachable.check delete mode 100644 test/files/run/patunreachable.scala (limited to 'test') diff --git a/test/files/run/bug1093.check b/test/files/run/bug1093.check new file mode 100644 index 0000000000..0cfbf08886 --- /dev/null +++ b/test/files/run/bug1093.check @@ -0,0 +1 @@ +2 diff --git a/test/files/run/bug1093.scala b/test/files/run/bug1093.scala new file mode 100644 index 0000000000..4cc6181e81 --- /dev/null +++ b/test/files/run/bug1093.scala @@ -0,0 +1,9 @@ +// contribution bug #460 + +object Test extends Application { + val x = Some(3) match { + case Some(1 | 2) => 1 + case Some(3) => 2 + } + println(x) +} diff --git a/test/files/run/bug1094.check b/test/files/run/bug1094.check new file mode 100644 index 0000000000..bc56c4d894 --- /dev/null +++ b/test/files/run/bug1094.check @@ -0,0 +1 @@ +Foo diff --git a/test/files/run/bug1094.scala b/test/files/run/bug1094.scala new file mode 100644 index 0000000000..7fe8072b5f --- /dev/null +++ b/test/files/run/bug1094.scala @@ -0,0 +1,11 @@ +// contribution bug #461 + +object Test extends Application { + def foo(ps: String*) = "Foo" + case class X(p: String, ps: String*) + def bar = + X("a", "b") match { + case X(p, ps @ _*) => foo(ps : _*) + } + println(bar) +} diff --git a/test/files/run/patseq.check b/test/files/run/patseq.check deleted file mode 100644 index bc56c4d894..0000000000 --- a/test/files/run/patseq.check +++ /dev/null @@ -1 +0,0 @@ -Foo diff --git a/test/files/run/patseq.scala b/test/files/run/patseq.scala deleted file mode 100644 index 7fe8072b5f..0000000000 --- a/test/files/run/patseq.scala +++ /dev/null @@ -1,11 +0,0 @@ -// contribution bug #461 - -object Test extends Application { - def foo(ps: String*) = "Foo" - case class X(p: String, ps: String*) - def bar = - X("a", "b") match { - case X(p, ps @ _*) => foo(ps : _*) - } - println(bar) -} diff --git a/test/files/run/patunreachable.check b/test/files/run/patunreachable.check deleted file mode 100644 index 0cfbf08886..0000000000 --- a/test/files/run/patunreachable.check +++ /dev/null @@ -1 +0,0 @@ -2 diff --git a/test/files/run/patunreachable.scala b/test/files/run/patunreachable.scala deleted file mode 100644 index 4cc6181e81..0000000000 --- a/test/files/run/patunreachable.scala +++ /dev/null @@ -1,9 +0,0 @@ -// contribution bug #460 - -object Test extends Application { - val x = Some(3) match { - case Some(1 | 2) => 1 - case Some(3) => 2 - } - println(x) -} -- cgit v1.2.3