add ignore_header setup option, add unit tests for parsing by header, add string_view to possible conversion values

This commit is contained in:
ado
2022-03-27 21:04:02 +02:00
parent 45d166f93d
commit a8fa5c753c
69 changed files with 4194 additions and 33 deletions

View File

@@ -107,6 +107,13 @@ TEST_CASE("converter test valid conversions") {
REQUIRE(std::holds_alternative<double>(std::get<0>(tup)));
CHECK_EQ(tup, std::make_tuple(std::variant<int, double>{5.5}, 6.6));
}
{
auto tup = c.convert<void, std::string_view, double,
std::string_view>("junk;s1;6.6;s2", ";");
REQUIRE(c.valid());
CHECK_EQ(tup, std::make_tuple(std::string_view{"s1"}, 6.6,
std::string_view{"s2"}));
}
}
TEST_CASE("converter test invalid conversions") {