Skip to content

Commit 95c64f8

Browse files
committed
refactor: use [print_dyn]
1 parent 3c286ec commit 95c64f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib_test/expect/test_automata.ml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include struct
1515
let seq = seq
1616
end
1717

18-
let pp_state fmt state = Base.Sexp.pp_hum fmt (sexp_of_dyn (State.to_dyn state))
18+
let pp_state state = print_dyn (State.to_dyn state)
1919
let pp_expr fmt expr = Automata.pp fmt expr
2020
let cat = Category.dummy
2121

@@ -38,7 +38,7 @@ let%expect_test "string" =
3838
let re = str ids `First s in
3939
let wa = Working_area.create () in
4040
let rec loop d c =
41-
Format.printf "%a@." pp_state d;
41+
pp_state d;
4242
match State.status d with
4343
| Failed -> Format.printf "> failed@."
4444
| Match _ -> Format.printf "> matched@."
@@ -81,7 +81,7 @@ let%expect_test "alternation" =
8181
in
8282
let wa = Working_area.create () in
8383
let rec loop d c =
84-
Format.printf "%a@." pp_state d;
84+
pp_state d;
8585
match State.status d with
8686
| Failed -> Format.printf "> failed@."
8787
| Match _ -> Format.printf "> matched@."
@@ -129,7 +129,7 @@ let%expect_test "alternation shared prefix" =
129129
in
130130
let wa = Working_area.create () in
131131
let rec loop d c =
132-
Format.printf "%a@." pp_state d;
132+
pp_state d;
133133
match State.status d with
134134
| Failed -> Format.printf "> failed@."
135135
| Match _ -> Format.printf "> matched@."

0 commit comments

Comments
 (0)