Download apply_operations_to_an_array/ocaml_tests/main.ml from DatasetRepo/FPEval: direct link, hf CLI and curl.
- Browser
- Download file 459 Bytes
-
https://huggingface.co/datasets/DatasetRepo/FPEval/resolve/main/apply_operations_to_an_array/ocaml_tests/main.ml
- Command line
-
hf download hf://datasets/DatasetRepo/FPEval/apply_operations_to_an_array/ocaml_tests/main.ml
-
curl -L -o main.ml https://huggingface.co/datasets/DatasetRepo/FPEval/resolve/main/apply_operations_to_an_array/ocaml_tests/main.ml
459 Bytes
| module Main = struct | |
| open OUnit2 | |
| (* Program start *) | |
| (* Program end *) | |
| (* Test cases *) | |
| let test1 _ = assert_equal [1;4;2;0;0;0] (applyOperations [1;2;2;1;1;0]) | |
| let test2 _ = assert_equal [1;0] (applyOperations [0;1]) | |
| (* Grouping test cases *) | |
| let suite = "Test Suite for applyOperations" >::: [ | |
| "test1" >:: test1; | |
| "test2" >:: test2; | |
| ] | |
| (* Running the tests *) | |
| let () = run_test_tt_main suite | |
| end | |