From ba7d49f452178898e66315e18610c4953caded04 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sat, 19 Sep 2020 19:08:20 +0900 Subject: [PATCH] test: use normal string literal as a workaround for older version of gcc --- tests/test_parse_array.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/test_parse_array.cpp b/tests/test_parse_array.cpp index 3b7ca84..2723b89 100644 --- a/tests/test_parse_array.cpp +++ b/tests/test_parse_array.cpp @@ -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, R"([ - "foo" # comment - , "bar" # comment - , "baz" # comment - ] - )", toml::value(a)); + TOML11_TEST_PARSE_EQUAL_VALUE(parse_value, + "[ \"foo\" # comment\n" + ", \"bar\" # comment\n" + ", \"baz\" # comment\n" + "]", toml::value(a)); } }