File size: 456 Bytes
0a33073 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
module Main = struct
open OUnit2
(* Program start *)
(* Program end *)
(* Test cases *)
let test1 _ = assert_equal 20 (findDelayedArrivalTime 15 5)
let test2 _ = assert_equal 0 (findDelayedArrivalTime 13 11)
(* Grouping test cases *)
let suite = "Test Suite for findDelayedArrivalTime" >::: [
"test1" >:: test1;
"test2" >:: test2;
]
(* Running the tests *)
let () = run_test_tt_main suite
end
|