diff options
Diffstat (limited to 'test/files/run/patmatnew.scala')
-rw-r--r-- | test/files/run/patmatnew.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/patmatnew.scala b/test/files/run/patmatnew.scala index 16336a516c..4f6649f8b6 100644 --- a/test/files/run/patmatnew.scala +++ b/test/files/run/patmatnew.scala @@ -97,6 +97,12 @@ object Test extends TestConsoleMain { } } + // also: this one from fannkuch + //def flips(l: List[int]): int = (l: @unchecked) match { + // case 1 :: ls => 0 + // case n :: ls => flips((l take n reverse) ::: (l drop n)) + 1 + //} + def runTest() = assertEquals("both", (Var("x"),Var("y")), f) } |