Add invalid header usage tests

This commit is contained in:
ado
2023-08-04 21:22:23 +02:00
parent c981ed6644
commit 634abdd38b
4 changed files with 25 additions and 53 deletions

View File

@@ -978,3 +978,4 @@ TEST_CASE("converter test invalid split conversions with exceptions") {
buff(R"(just,some,2,"strings\")")));
CHECK(c.unterminated_quote());
}

View File

@@ -1168,14 +1168,12 @@ void test_invalid_fields_impl(const std::vector<std::string>& lines,
}
out.close();
/* TODO test
{
// No fields specified
ss::parser<Ts...> p{f.name, ","};
p.use_fields();
CHECK(!p.valid());
auto command = [&] { p.use_fields(); };
expect_error_on_command(p, command);
}
*/
{
// Unknown field