Skip to content

Commit 613859f

Browse files
committed
Use tablex to insert tbody in the tests.
1 parent 96a4bb8 commit 613859f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_ppx.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ let basics = "ppx basics", HtmlTests.make Html.[
143143

144144
"whitespace in table",
145145
[[%html "<table> <tr><td>foo</td></tr> <tr><td>bar</td></tr> </table>"]],
146-
[table [tr [td [txt "foo"]] ; tr [td [txt "bar"]]]] ;
146+
[tablex [tbody [tr [td [txt "foo"]] ; tr [td [txt "bar"]]]]] ;
147147

148148
"whitespace in table, full example",
149149
[[%html "<table>
@@ -170,11 +170,11 @@ let basics = "ppx basics", HtmlTests.make Html.[
170170
</tr>
171171
</tfoot>
172172
</table>"]],
173-
[table ~caption:(caption [txt "txt"])
173+
[tablex ~caption:(caption [txt "txt"])
174174
~columns:[colgroup [col ~a:[a_span 2] ()]]
175175
~thead:(thead [tr [th [txt "h1"] ; th [txt "h2"]]])
176176
~tfoot:(tfoot [tr [td [txt "f1"] ; td [txt "f2"]]])
177-
[tr [td [txt "b1"] ; td [txt "b2"]]]] ;
177+
[tbody [tr [td [txt "b1"] ; td [txt "b2"]]]]] ;
178178

179179
"whitespace in select",
180180
[[%html {|<select> <option value="bar">bar</option> </select>|}]],

0 commit comments

Comments
 (0)