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