srctree

Robin Linden parent 0918effc 67fc1610
html2/test: Skip tests containing \r in the in input

We haven't implemented an input stream abstraction yet.

inlinesplit
html2/html5lib_test.cpp added: 7, removed: 1, total 6
@@ -147,6 +147,12 @@ int main(int argc, char **argv) {
continue;
}
auto in = test["input"].get_string().value();
// TOOD(robinlinden): Don't skip these.
// See: https://html.spec.whatwg.org/multipage/parsing.html#preprocessing-the-input-stream
if (in.contains('\r')) {
continue;
}
 
auto out_tokens = to_html2_tokens(test["output"].get_array().value());
 
s.add_test(std::string{name}, [input = std::string{in}, expected = std::move(out_tokens)](etest::IActions &a) {