From 5fb1d255c62ff257bae35ea9f33e6b08bc872bd8 Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Fri, 12 Dec 2025 01:40:42 +0100 Subject: test(matrix): update expect test after updating pp function --- 2025/ocaml/lib/domain/matrix.ml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to '2025/ocaml/lib/domain/matrix.ml') diff --git a/2025/ocaml/lib/domain/matrix.ml b/2025/ocaml/lib/domain/matrix.ml index dadd60a..fdf476f 100644 --- a/2025/ocaml/lib/domain/matrix.ml +++ b/2025/ocaml/lib/domain/matrix.ml @@ -110,16 +110,20 @@ let%expect_test "matrix created from input is pretty-printed as the same matrix" in print_string @@ M.pp (fun s -> s) @@ M.of_string example ; [%expect - {|..@@.@@@@. -@@@.@.@.@@ -@@@@@.@.@@ -@.@@@@..@. -@@.@@@@.@@ -.@@@@@@@.@ -.@.@.@.@@@ -@.@@@.@@@@ -.@@@@@@@@. -@.@.@@@.@.|}] + {| + [ + [ .; .; @; @; .; @; @; @; @; .; ] + [ @; @; @; .; @; .; @; .; @; @; ] + [ @; @; @; @; @; .; @; .; @; @; ] + [ @; .; @; @; @; @; .; .; @; .; ] + [ @; @; .; @; @; @; @; .; @; @; ] + [ .; @; @; @; @; @; @; @; .; @; ] + [ .; @; .; @; .; @; .; @; @; @; ] + [ @; .; @; @; @; .; @; @; @; @; ] + [ .; @; @; @; @; @; @; @; @; .; ] + [ @; .; @; .; @; @; @; .; @; .; ] + ] + |}] let%expect_test "direct access of the matrix is in form matrix.(y).(x)" = let example = -- cgit v1.2.3