CSE 582 Test Programs

Overview:

These programs were used in CSE 582, Au02 to test that Java subset compiler. They will need some modification to be used with MiniJava, since they don't contain a standard MiniJava Main class and they include Java constructs not part of MiniJava. But they might prove useful as ideas for additional things to test your MiniJava compiler with. If you convert any of these to MiniJava and would like to contribute them to the course web, please mail them to Hal.

Tests

Tests like ArithmeticTester and SimpleClasses are good places to start for basic debugging of your compiler.
  1. ArithmeticTester.jf
  2. SimpleClasses.jf
  3. Factorial.jf
  4. MaxSum.jf
  5. Factorial5.jf
  6. GeoTester.jf- torture test!
  7. ArrayMax.jf - array test

New files for testing parsers contributed 10/28/02 by Saurabh Mahajan. These cover both things that are allowed in the language as well as errors and extensions.

  1. ParserTest1.jf
  2. ParserError1.jf
  3. ParserError2.jf
  4. ParserError3.jf
  5. ArbitraryOrdering.jf

If you find any problems with these programs, please email the course staff.

Additional contributions are welcome. Send mail to Hal (perkins@cs.washington.edu) with test programs attached.