diff options
Diffstat (limited to 'test/files/run/patmatnew.scala')
-rw-r--r-- | test/files/run/patmatnew.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/patmatnew.scala b/test/files/run/patmatnew.scala index 0437598c40..6a5e725f29 100644 --- a/test/files/run/patmatnew.scala +++ b/test/files/run/patmatnew.scala @@ -19,6 +19,7 @@ object Test extends TestConsoleMain { def suite = new TestSuite( new TestSimpleIntSwitch, + new SimpleUnapply, new Test717, new TestGuards, new TestStream, @@ -30,6 +31,13 @@ object Test extends TestConsoleMain { class Foo(j:Int) { case class Bar(i:Int) } + class SimpleUnapply extends TestCase("simpleUnapply") { + override def runTest() { // from sortedmap, old version + List((1,2)).head match { + case kv @ Pair(key, _) => kv.toString + " " + key.toString + } + } + } class TestSimpleIntSwitch extends TestCase("SimpleIntSwitch") { override def runTest() = { assertEquals("s1", 1, 1 match { |