mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
test: in case of comment-before-comma
This commit is contained in:
@@ -172,3 +172,19 @@ BOOST_AUTO_TEST_CASE(test_heterogeneous_array)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(test_comments_after_comma)
|
||||||
|
{
|
||||||
|
{
|
||||||
|
array a;
|
||||||
|
a.push_back("foo");
|
||||||
|
a.push_back("bar");
|
||||||
|
a.push_back("baz");
|
||||||
|
TOML11_TEST_PARSE_EQUAL_VALUE(parse_value<toml::value>, R"([
|
||||||
|
"foo" # comment
|
||||||
|
, "bar" # comment
|
||||||
|
, "baz" # comment
|
||||||
|
]
|
||||||
|
)", toml::value(a));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user