TheRealSamuel/LeetCodeProblem
0572
1 2module Main = struct3 open OUnit24 5 (* Program start *)6 7 (* Program end *)8 9 (* Test cases *)10 11let test1 _ = assert_equal [5;6;8;9] (relocateMarbles [1;6;7;8] [1;7;2] [2;9;5])12 13let test2 _ = assert_equal [2] (relocateMarbles [1;1;3;3] [1;3] [2;2])14 15 16 (* Grouping test cases *)17 let suite = "Test Suite for relocateMarbles" >::: [18 19 "test1" >:: test1;20 "test2" >:: test2;21 ]22 23 24 (* Running the tests *)25 let () = run_test_tt_main suite26end27 