UNB/ CS/ David Bremner/ teaching/ cs3613/ testing

Testing

For all programming assignments in this course, testing your code is mandatory. The number and type of test cases required will vary with the sophistication of the program.

Racket

In general, use test forms in your racket code unless the assignment specifies otherwise. Run your program under script using e.g. racket myprog.rkt. See the lab guide for details. Hand in the resulting typescript.

Testing C or Java

Compile your program and run it under script. Use I/O redirection to read your test cases from files. See the lab guide for details. Hand in the resulting typescript, and the test case files.

Testing Oz

Either compile your Oz program to a standalone executable and follow the C/Java instructions, or hand in the contents of *Oz Emulator* buffer. Make sure you start a fresh instance of the Oz virtual machine to do your testing (Halt Oz, Followed by Run Oz).