You can view the test cases for PA4 in the directory or download them in a tar.gz file.
Tests for PA4
You can view the test cases for PA4 in the directory or download them in a tar.gz file.
Tests for PA3
I have collected the tests that I used to grade PA3. You can view
them in this directory or download the test files
as a tar.gz file.
Tests for PA2
I have collected the tests that I used to grade PA2. You can view
them in this directory or download the test files
as a tar.gz file.
Tests Collected from PA1
For the tests below, I wrote a little about the unique feature(s) that
each program tests; otherwise, the programs test a lot of different
Cool features. I will also note if the program does not compile. You
can always compare the results from your compiler to the results of
the given coolc compiler.
features.cl - Test parameter
passing (by reference or by value), cloning vs. pointer for assignment
inher1.cl - recursion,
function calls as parameters, case, static dispatch, scoping (with
let statement)
inher2.cl - if uncomment big
inheritance hierarchy, spim segfaults when running on given coolc
compiler-generated code; uncomment other parts to test recursive
inheritance or inheriting from a basic type