CSE 428 Assignment #5: solution, test cases and grading policy


Solution

Click here for the soltion.

Test cases and grading policy

The links below are sml files used to test the solution and determine the grade. To test your solution, download these files and save them, for instance with names S5_tests1.sml, S5_tests2.sml and S5_tests3.sml. Then enter in sml with the instruction
   /home/users2/sml/bin/sml
Then, load your solution in sml with the instruction
   use "XXXX.sml";
where XXXX.sml is the name of the file containing your solution.

Now you are ready to test your solution. To test the Exercise 1, for example, load the file S5_tests1.sml with the instruction

   use "S5_tests1.sml";
The file contains some expressions that represent the test cases. These expressions will be evaluated and compared with the expected results. The outcome of this comparison determines the grade for the test. At the end, there is an expressions representing the total score for your solution on this exercise, and the list of the test cases on which your solution has failed. (The list will of course be empty if your solution is totally correct.)

The other exercises can be tested in an analogous way with the other two files.

Tests and grades for Exercise 1 (Subtract 10 pts if you used auxiliary functions)

Tests and grades for Exercise 2

Tests and grades for Exercise 3