diff options
author | mihaylov <mihaylov@epfl.ch> | 2004-10-07 12:37:51 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2004-10-07 12:37:51 +0000 |
commit | 5b0cf6f9f19e8ee0b6090525c215e73adb5836f3 (patch) | |
tree | e6b286c54d2dc89d89ffd51546d01d926c32c975 /test/files/run/regularpatmat.scala | |
parent | 8ae023e8761e7af74c00c9cb33a20f1006defddc (diff) | |
download | scala-5b0cf6f9f19e8ee0b6090525c215e73adb5836f3.tar.gz scala-5b0cf6f9f19e8ee0b6090525c215e73adb5836f3.tar.bz2 scala-5b0cf6f9f19e8ee0b6090525c215e73adb5836f3.zip |
- 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
Diffstat (limited to 'test/files/run/regularpatmat.scala')
-rw-r--r-- | test/files/run/regularpatmat.scala | 46 |
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; - () - } -} |