Skip to content

Commit 7ceddde

Browse files
committed
Fix and disable the html_fail test.
1 parent 5db0650 commit 7ceddde

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

_oasis

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,12 @@ Test html
183183
TestTools: main_test
184184
Run$: flag(tests) && flag(ppx)
185185

186-
Test html_fail
187-
Command: ocamlbuild -use-ocamlfind test/html_fail.stamp
188-
TestTools: main_test
189-
Run$: flag(tests) && flag(ppx)
186+
## This test is disabled as it can't run on both 4.03 and 4.02
187+
## Curent oasis doesn't allow to restrict the version just for this test.
188+
# Test html_fail
189+
# Command: ocamlbuild -use-ocamlfind test/html_fail.stamp
190+
# TestTools: main_test
191+
# Run$: flag(tests) && flag(ppx)
190192

191193
## Examples
192194

test/html_fail.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Error: This expression has type
77
but an expression was expected of type
88
([< Html_types.div_content_fun ] as 'd) Tyxml.Html.elt =
99
'd Tyxml_html.elt
10-
Type 'a is not compatible with type
10+
Type [> `A of 'b ] as 'a is not compatible with type
1111
'd =
1212
[< `A of Html_types.flow5_without_interactive
1313
| `Abbr
@@ -92,7 +92,7 @@ Error: This expression has type
9292
| `Video of Html_types.flow5_without_media
9393
| `Video_interactive of Html_types.flow5_without_media
9494
| `Wbr ]
95-
Type 'b is not compatible with type
95+
Type [> `A of 'c ] as 'b is not compatible with type
9696
Html_types.flow5_without_interactive =
9797
[ `Abbr
9898
| `Address

0 commit comments

Comments
 (0)