@@ -15,7 +15,7 @@ include struct
15
15
let seq = seq
16
16
end
17
17
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)
19
19
let pp_expr fmt expr = Automata. pp fmt expr
20
20
let cat = Category. dummy
21
21
@@ -38,7 +38,7 @@ let%expect_test "string" =
38
38
let re = str ids `First s in
39
39
let wa = Working_area. create () in
40
40
let rec loop d c =
41
- Format. printf " %a@. " pp_state d;
41
+ pp_state d;
42
42
match State. status d with
43
43
| Failed -> Format. printf " > failed@."
44
44
| Match _ -> Format. printf " > matched@."
@@ -81,7 +81,7 @@ let%expect_test "alternation" =
81
81
in
82
82
let wa = Working_area. create () in
83
83
let rec loop d c =
84
- Format. printf " %a@. " pp_state d;
84
+ pp_state d;
85
85
match State. status d with
86
86
| Failed -> Format. printf " > failed@."
87
87
| Match _ -> Format. printf " > matched@."
@@ -129,7 +129,7 @@ let%expect_test "alternation shared prefix" =
129
129
in
130
130
let wa = Working_area. create () in
131
131
let rec loop d c =
132
- Format. printf " %a@. " pp_state d;
132
+ pp_state d;
133
133
match State. status d with
134
134
| Failed -> Format. printf " > failed@."
135
135
| Match _ -> Format. printf " > matched@."
0 commit comments