From cdbf4be6fa793ca1286604bdc2a1bb5c9e6a197a Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Mon, 1 Dec 2025 22:51:45 +0100 Subject: refactor(2025d1p1): rename files to order correctly and include part number --- 2025/ocaml/test/application/test_d01p01.ml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 2025/ocaml/test/application/test_d01p01.ml (limited to '2025/ocaml/test/application/test_d01p01.ml') diff --git a/2025/ocaml/test/application/test_d01p01.ml b/2025/ocaml/test/application/test_d01p01.ml new file mode 100644 index 0000000..223fd2b --- /dev/null +++ b/2025/ocaml/test/application/test_d01p01.ml @@ -0,0 +1,21 @@ +open Application.D01p01 + +let example_data = {|L68 +L30 +R48 +L5 +R60 +L55 +L1 +L99 +R14 +L82|} + +let test_full_given_example () = + Alcotest.(check int) "full given example" 3 (solve example_data ()) + +let () = + let open Alcotest in + run "Day_1" + [ ( "given-example" + , [test_case "full given example" `Quick test_full_given_example] ) ] -- cgit v1.2.3