diff options
author | buraq <buraq@epfl.ch> | 2005-04-25 08:40:08 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2005-04-25 08:40:08 +0000 |
commit | 9a33a267d9a7481d7b3e62605275f9e60a202042 (patch) | |
tree | 07a5e98d3df551a2a5c71f577855a8fd51ddbc71 /test/files/run | |
parent | 07af0f5eb5bd0fdf869e21254bafb38e1088861e (diff) | |
download | scala-9a33a267d9a7481d7b3e62605275f9e60a202042.tar.gz scala-9a33a267d9a7481d7b3e62605275f9e60a202042.tar.bz2 scala-9a33a267d9a7481d7b3e62605275f9e60a202042.zip |
added another little test
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/regularpatmat.check | 2 | ||||
-rw-r--r-- | test/files/run/regularpatmat.scala | 12 |
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; } |