fix: skip whitespaces without newline

This commit is contained in:
ToruNiina
2019-08-26 18:16:09 +09:00
parent e332e018db
commit 7a1b5bd64e
2 changed files with 11 additions and 0 deletions

View File

@@ -45,6 +45,16 @@ BOOST_AUTO_TEST_CASE(test_file_as_literal)
b = "baz"
)"_toml;
BOOST_TEST(r == v);
}
{
const toml::value r{
{"array_of_tables", toml::array{toml::table{}}}
};
const toml::value v = u8R"(
[[array_of_tables]]
)"_toml;
BOOST_TEST(r == v);
}
}