We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c15c941 commit a722d70Copy full SHA for a722d70
lib_test/test_mustache.ml
@@ -89,6 +89,9 @@ let tests = [
89
90
]
91
92
+let roundtrip : t -> t =
93
+ fun t -> erase_locs (add_dummy_locs t)
94
+
95
let () =
96
97
let assert_equal ?(printer=fun _ -> "") a b =
@@ -99,7 +102,9 @@ let () =
99
102
(List.mapi
100
103
(fun i (input, expected_parsing, rendering_tests) ->
101
104
let template = Mustache.of_string input in
- (Printf.sprintf "%d - parsing" i
105
+ (Printf.sprintf "%d - erase_locs/add_dummy_locs roundtrip" i
106
+ >:: assert_equal (roundtrip template) template)
107
+ :: (Printf.sprintf "%d - parsing" i
108
>:: assert_equal expected_parsing template)
109
:: List.mapi (fun j (data, expected) ->
110
(Printf.sprintf "%d - rendering (%d)" i j)
0 commit comments