test: explicitly specify if comments are preserved

This commit is contained in:
ToruNiina 2021-04-27 13:19:55 +09:00
parent b51ef5e869
commit beb665ba58

View File

@ -190,7 +190,7 @@ BOOST_AUTO_TEST_CASE(test_discard_comment)
)";
std::istringstream iss(file);
const auto v = toml::parse(iss);
const auto v = toml::parse<toml::discard_comments>(iss);
const auto& a = toml::find(v, "a");
const auto& b = toml::find(v, "b");