summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2025-12-02 00:09:34 +0100
committerDJ O'Leary <dijitol@proton.me>2025-12-02 00:09:34 +0100
commit6174e9bb0eeddb57f50c31d6de67c6327f4f39c7 (patch)
tree52292a1c793fe81848adbdcd2908d67b180560e0
parent4e1aa9b6b427afb90db678f5b16171b1988e9365 (diff)
docs: fix day 1 part 1 docs
-rw-r--r--2025/ocaml/lib/application/d01p01.mli4
-rw-r--r--2025/ocaml/test/application/test_d01p01.ml2
-rw-r--r--2025/ocaml/test/domain/test_d01p01.ml2
3 files changed, 4 insertions, 4 deletions
diff --git a/2025/ocaml/lib/application/d01p01.mli b/2025/ocaml/lib/application/d01p01.mli
index 73631f1..30ece9d 100644
--- a/2025/ocaml/lib/application/d01p01.mli
+++ b/2025/ocaml/lib/application/d01p01.mli
@@ -1,4 +1,4 @@
val solve : string -> unit -> int
-(** [solve input ()] is the solution for the first day of advent of code 2025 for [input].
- The solution for an empty input is [Domain.Day_1.Dial.(to_int start)].
+(** [solve input ()] is the solution for the first part of the first day of advent of code 2025 for [input].
+ The solution for an empty input is 0.
Requires: [input] to be a multiline string using `\n` as it's line separator. *)
diff --git a/2025/ocaml/test/application/test_d01p01.ml b/2025/ocaml/test/application/test_d01p01.ml
index 223fd2b..70f5ab2 100644
--- a/2025/ocaml/test/application/test_d01p01.ml
+++ b/2025/ocaml/test/application/test_d01p01.ml
@@ -16,6 +16,6 @@ let test_full_given_example () =
let () =
let open Alcotest in
- run "Day_1"
+ run "D01p01"
[ ( "given-example"
, [test_case "full given example" `Quick test_full_given_example] ) ]
diff --git a/2025/ocaml/test/domain/test_d01p01.ml b/2025/ocaml/test/domain/test_d01p01.ml
index e51d9a6..23404f6 100644
--- a/2025/ocaml/test/domain/test_d01p01.ml
+++ b/2025/ocaml/test/domain/test_d01p01.ml
@@ -20,7 +20,7 @@ let test_turn_right_100 () =
let () =
let open Alcotest in
- run "Day_1"
+ run "D01p01"
[ ("initial-state", [test_case "starting state" `Quick test_start])
; ( "turning-dial"
, [ test_case "turning left one step" `Quick test_turn_left_one