DatasetRepo's picture
01f8c30643da4e616b39828bdd070cc9851cf24934ec52fcd98787d2c1446c33
2305194 verified
raw
history blame
549 Bytes
module Main = struct
open OUnit2
(* Program start *)
(* Program end *)
(* Test cases *)
let test1 _ = assert_equal true (checkDistances "abaccb" [1;3;0;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0])
let test2 _ = assert_equal false (checkDistances "aa" [1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0])
(* Grouping test cases *)
let suite = "Test Suite for checkDistances" >::: [
"test1" >:: test1;
"test2" >:: test2;
]
(* Running the tests *)
let () = run_test_tt_main suite
end