let rubric_version = "1.0" let rubric_title = "CS421 Fall 2012 MP2" (************************************************************************** * 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. **************************************************************************) let test_check_path_stu = List.map (fun (adj_list, test_pairs) -> List.map (Student.check_path adj_list) test_pairs) let test_check_path_sol = List.map (fun (adj_list, test_pairs) -> List.map (Solution.check_path adj_list) test_pairs) (* This list is for regular problems *) let rubric = [ ] (* Note: the last entry should not be followed by a semicolon. *) let extra_rubric = [ TEST1ARG_TWOFUN(1, test_check_path_stu, test_check_path_sol, [([[1;2;3;4];[3;0;4;5];[1;4;3;5];[2;1];[1;2];[2;3;4]], [(0,5)]); ([[]], [((-2),0);(0,(-2));((-1),(-1)); (0,0)]); ([[];[0;3;5];[4];[2];[];[1;3]], [(1,4)]); ([[5;0];[0];[1];[2];[3];[4];[5]], [(1,2); (1,6); (1,0); (5,5); (0,0)]); ([[5;1];[0;2];[1;3];[2;4];[3;5];[4;0;6];[5]], [(1,2)]); ([[1;3];[3;0;5];[1;4;3;5];[2];[1;5];[1;3]], [(1,4)])]) ]