module Main = struct open OUnit2 (* Program start *) (* Program end *) (* Test cases *) let test1 _ = assert_equal [[3;0;0];[0;0;1];[0;2;0]] (buildMatrix 3 [[1;2];[3;2]] [[2;1];[3;2]]) let test2 _ = assert_equal [] (buildMatrix 3 [[1;2];[2;3];[3;1];[2;3]] [[2;1]]) (* Grouping test cases *) let suite = "Test Suite for buildMatrix" >::: [ "test1" >:: test1; "test2" >:: test2; ] (* Running the tests *) let () = run_test_tt_main suite end