let rubric_version = "1.0" (* Added some 0 pt tests for polymorphism checks *) let rubric_title = "CS421 Fall 2015 ML1" (************************************************************************** * You can add new test cases by adding new elements to the following lists * Format is: * TESTARG(, , , , ..., ) * * is the number of argument that the function being tested takes. **************************************************************************) (* This list is for regular problems *) let rubric = [ TEST1ARG(1, truth_total, (false, false)); TEST1ARG(1, drop_two, (1,2,3,4)); TEST1ARG(0, drop_two, ((),((),()),((),(),()),((),(),(),()))); TEST3ARG(1, pair_min_max, (1,2), (3,4), true); TEST2ARG(1, apply_to_pair, (fun x -> fun y -> x + y), (1,2)); TEST2ARG(0, apply_to_pair, (fun x -> fun y -> (x, y)), ((),((),()))); TEST2ARG(1, test_swap, (fun x -> x > 5), (10, 15)); TEST2ARG(0, test_swap, (fun x -> true), ((), ())); TEST3ARG(1, pair_min_max, (1,2), (3, 4), true); TEST2ARG(1, sum_between, 1, 3); TEST2ARG(1, sum_between, 5, 3); TEST2ARG(1, is_divis, 6, 2); TEST1ARG(1, approx_exp, 1.5); TEST1ARG(1, pow2, 3); TEST2ARG(1, sudan, 0, (0,0)) ] (* Note: the last entry should not be followed by a semicolon. *) let extra_rubric = [ ]