mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
test: explicitly specify if comments are preserved
This commit is contained in:
@@ -190,7 +190,7 @@ BOOST_AUTO_TEST_CASE(test_discard_comment)
|
|||||||
)";
|
)";
|
||||||
|
|
||||||
std::istringstream iss(file);
|
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& a = toml::find(v, "a");
|
||||||
const auto& b = toml::find(v, "b");
|
const auto& b = toml::find(v, "b");
|
||||||
|
|||||||
Reference in New Issue
Block a user