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