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