summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/run/regularpatmat.check2
-rw-r--r--test/files/run/regularpatmat.scala12
2 files changed, 13 insertions, 1 deletions
diff --git a/test/files/run/regularpatmat.check b/test/files/run/regularpatmat.check
index 4e277b8fa6..7c6f67ea71 100644
--- a/test/files/run/regularpatmat.check
+++ b/test/files/run/regularpatmat.check
@@ -41,6 +41,8 @@ passed ok
passed ok
testWR_7
passed ok
+testWR_8
+passed ok
testWS
passed ok
passed ok
diff --git a/test/files/run/regularpatmat.scala b/test/files/run/regularpatmat.scala
index 2f97f8a398..6847861d4d 100644
--- a/test/files/run/regularpatmat.scala
+++ b/test/files/run/regularpatmat.scala
@@ -412,6 +412,15 @@ object testWR {
assertEquals( doit6( s10 ), "decimal number");
}
+ def test8: Unit = {
+ Console.println("testWR_8");
+
+ assertTrue( List('d','c').match {
+ case List('a'*, 'd'|'e', 'c'*) => true
+ case _ => false
+ });
+ }
+
def test7:Unit = {
Console.println("testWR_7");
assertEquals( List(1,2) match {
@@ -426,7 +435,8 @@ object testWR {
test4;
test5;
test6;
- test7;
+ test7;
+ test8;
}