| module Main = struct | |
| open OUnit2 | |
| (* Program start *) | |
| (* Program end *) | |
| (* Test cases *) | |
| let test1 _ = assert_equal 5 (minimalKSum [1;4;25;10;25] 2) | |
| let test2 _ = assert_equal 25 (minimalKSum [5;6] 6) | |
| (* Grouping test cases *) | |
| let suite = "Test Suite for minimalKSum" >::: [ | |
| "test1" >:: test1; | |
| "test2" >:: test2; | |
| ] | |
| (* Running the tests *) | |
| let () = run_test_tt_main suite | |
| end | |