From 5b0cf6f9f19e8ee0b6090525c215e73adb5836f3 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Thu, 7 Oct 2004 12:37:51 +0000 Subject: - Moved object Test in the beginning of the fil... - Moved object Test in the beginning of the file so that it defines the entry point for the MSIL backend --- test/files/run/regularpatmat.scala | 46 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'test') 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; - () - } -} -- cgit v1.2.3