diff options
| author | DJ O'Leary <dijitol@proton.me> | 2025-12-12 01:40:42 +0100 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2025-12-12 01:40:42 +0100 |
| commit | 5fb1d255c62ff257bae35ea9f33e6b08bc872bd8 (patch) | |
| tree | a47e2edc999ff822798c11306cd76502086b4a73 /2025/ocaml | |
| parent | 30e1a9689d1397ee49e7e71123e8cbbbabed0841 (diff) | |
test(matrix): update expect test after updating pp function
Diffstat (limited to '2025/ocaml')
| -rw-r--r-- | 2025/ocaml/lib/domain/matrix.ml | 24 |
1 files changed, 14 insertions, 10 deletions
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 = |
