Download check_if_array_is_good/ocaml_tests/main.ml from DatasetRepo/FPEval: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/datasets/DatasetRepo/FPEval/resolve/refs%2Fpr%2F1/check_if_array_is_good/ocaml_tests/main.ml
- Command line
-
hf download hf://datasets/DatasetRepo/FPEval@refs/pr/1/check_if_array_is_good/ocaml_tests/main.ml
-
curl -L -o main.ml https://huggingface.co/datasets/DatasetRepo/FPEval/resolve/refs%2Fpr%2F1/check_if_array_is_good/ocaml_tests/main.ml
579 Bytes
| module Main = struct | |
| open OUnit2 | |
| (* Program start *) | |
| (* Program end *) | |
| (* Test cases *) | |
| let test1 _ = assert_equal false (isGood [2; 1; 3]) | |
| let test2 _ = assert_equal true (isGood [1; 3; 3; 2]) | |
| let test3 _ = assert_equal true (isGood [1; 1]) | |
| let test4 _ = assert_equal false (isGood [3; 4; 4; 1; 2; 1]) | |
| (* Grouping test cases *) | |
| let suite = "Test Suite for isGood" >::: [ | |
| "test1" >:: test1; | |
| "test2" >:: test2; | |
| "test3" >:: test3; | |
| "test4" >:: test4; | |
| ] | |
| (* Running the tests *) | |
| let () = run_test_tt_main suite | |
| end | |