summaryrefslogtreecommitdiff
path: root/2025/ocaml/test/application/test_d04p01.ml
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2025-12-08 01:55:28 +0100
committerDJ O'Leary <dijitol@proton.me>2025-12-08 01:57:20 +0100
commit0f34d9a931791406d2cabf282742530195f71927 (patch)
tree076e546f64f8f541e91bf135d5d5c78cde173ccf /2025/ocaml/test/application/test_d04p01.ml
parent63c4dea442acb32db82318b4399ac05fb955e6d0 (diff)
refactor(2025,ocaml): use result type for answers to allow for returning errors
Diffstat (limited to '2025/ocaml/test/application/test_d04p01.ml')
-rw-r--r--2025/ocaml/test/application/test_d04p01.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/2025/ocaml/test/application/test_d04p01.ml b/2025/ocaml/test/application/test_d04p01.ml
index 783659e..ffbe102 100644
--- a/2025/ocaml/test/application/test_d04p01.ml
+++ b/2025/ocaml/test/application/test_d04p01.ml
@@ -14,7 +14,7 @@ let example =
let test_input_to_matrix have want () =
Alcotest.(check int) "number of rolls of paper that are accessible" want
- @@ solve have ()
+ @@ match solve have () with Error _ -> 0 | Ok ans -> ans
let () =
let open Alcotest in