summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/files/run/regularpatmat.scala46
1 files changed, 23 insertions, 23 deletions
diff --git a/test/files/run/regularpatmat.scala b/test/files/run/regularpatmat.scala
index 4f358366fc..b5c345cf2d 100644
--- a/test/files/run/regularpatmat.scala
+++ b/test/files/run/regularpatmat.scala
@@ -1,6 +1,28 @@
// Burak's test suite for regular pattern matching
-import java.lang.System; // to avoid name clash with .NET's library
+//import java.lang.System; // to avoid name clash with .NET's library
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ Console.println("pretest");
+ val L = List(1,2,3);
+ scala.testing.UnitTest.assertEquals( L, L.match { case List(xs@_*) => xs; } ) ;
+
+ testWR.main( args );
+ testWS.main( args );
+ testWT.main( args );
+ testWV.main( args );
+ //testWW.main( args );
+ testBK.main( args );
+ testBL.main( args );
+ testBM.main( args );
+ testBN.main( args );
+ testBO.main( args );
+ testMZ.main;
+ //testNN.main;
+ ()
+ }
+}
// contains 17 visitors plus X
@@ -694,25 +716,3 @@ object testNO { // this does not need to be run, only compiled
}
-
-object Test {
- def main(args: Array[String]): Unit = {
- Console.println("pretest");
- val L = List(1,2,3);
- scala.testing.UnitTest.assertEquals( L, L.match { case List(xs@_*) => xs; } ) ;
-
- testWR.main( args );
- testWS.main( args );
- testWT.main( args );
- testWV.main( args );
- //testWW.main( args );
- testBK.main( args );
- testBL.main( args );
- testBM.main( args );
- testBN.main( args );
- testBO.main( args );
- testMZ.main;
- //testNN.main;
- ()
- }
-}