test: use normal string literal

as a workaround for older version of gcc
This commit is contained in:
ToruNiina 2020-09-19 19:08:20 +09:00
parent b0784ce286
commit ba7d49f452

View File

@ -180,11 +180,10 @@ BOOST_AUTO_TEST_CASE(test_comments_after_comma)
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));
TOML11_TEST_PARSE_EQUAL_VALUE(parse_value<toml::value>,
"[ \"foo\" # comment\n"
", \"bar\" # comment\n"
", \"baz\" # comment\n"
"]", toml::value(a));
}
}