DatasetRepo's picture
43e66b9e48cf858a1572894aee262c4c38e10faeac928b7ff2589934cc6f83f3
2a4a1e5 verified
raw
history blame
464 Bytes
module Main = struct
open OUnit2
(* Program start *)
(* Program end *)
(* Test cases *)
let test1 _ = assert_equal 2 (minOperations [2;3;2;4;3] [9;6;9;3;15])
let test2 _ = assert_equal (-1) (minOperations [4;3;6] [8;2;6;10])
(* Grouping test cases *)
let suite = "Test Suite for minOperations" >::: [
"test1" >:: test1;
"test2" >:: test2;
]
(* Running the tests *)
let () = run_test_tt_main suite
end