diff --git a/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp b/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp index 19ce6b0..8d878a6 100644 --- a/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp +++ b/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp @@ -33,7 +33,7 @@ std::string const path{"C:\\Program Files\\Vendor\\Application\\Application.exe" std::string const contains_sentinel{"whoops)\""}; // #TEST#: RAW10 -std::string const contains_delim{"whoops)\")delim\""}; +std::string const contains_delim{"whoops)\")delimiter\""}; } // namespace @@ -48,5 +48,5 @@ void TestReplaceStringLiteralWithRawStringLiteral() REQUIRE_EQUAL(std::string("goink\\(one|two\\)\\\\\\?.*\\nfrob"), regex); REQUIRE_EQUAL(std::string("C:\\Program Files\\Vendor\\Application\\Application.exe"), path); REQUIRE_EQUAL(std::string("whoops)\""), contains_sentinel); - REQUIRE_EQUAL(std::string("whoops)\")delim\""), contains_delim); + REQUIRE_EQUAL(std::string("whoops)\")delimiter\""), contains_delim); } diff --git a/results/diffs/RAW10.txt b/results/diffs/RAW10.txt index 237ebe3..5e02e96 100644 --- a/results/diffs/RAW10.txt +++ b/results/diffs/RAW10.txt @@ -1,20 +1,13 @@ diff --git a/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp b/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp -index 19ce6b0..9e57c1b 100644 +index 8d878a6..9e57c1b 100644 --- a/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp +++ b/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp @@ -33,7 +33,7 @@ std::string const path{"C:\\Program Files\\Vendor\\Application\\Application.exe" std::string const contains_sentinel{"whoops)\""}; // #TEST#: RAW10 --std::string const contains_delim{"whoops)\")delim\""}; +-std::string const contains_delim{"whoops)\")delimiter\""}; +std::string const contains_delim{R"delimiter2(whoops)")delimiter")delimiter2"}; } // namespace -@@ -48,5 +48,5 @@ void TestReplaceStringLiteralWithRawStringLiteral() - REQUIRE_EQUAL(std::string("goink\\(one|two\\)\\\\\\?.*\\nfrob"), regex); - REQUIRE_EQUAL(std::string("C:\\Program Files\\Vendor\\Application\\Application.exe"), path); - REQUIRE_EQUAL(std::string("whoops)\""), contains_sentinel); -- REQUIRE_EQUAL(std::string("whoops)\")delim\""), contains_delim); -+ REQUIRE_EQUAL(std::string("whoops)\")delimiter\""), contains_delim); - } diff --git a/results/diffs/RAW2.txt b/results/diffs/RAW2.txt index d631c45..3fb7620 100644 --- a/results/diffs/RAW2.txt +++ b/results/diffs/RAW2.txt @@ -1,13 +1,14 @@ diff --git a/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp b/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp -index 19ce6b0..3cfda37 100644 +index 19ce6b0..04b9f79 100644 --- a/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp +++ b/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp -@@ -12,7 +12,7 @@ std::string const backslash{"goink\\frob"}; - std::string const newline{"goink\nfrob"}; +@@ -9,7 +9,8 @@ namespace + std::string const backslash{"goink\\frob"}; - // #TEST#: RAW3 --std::string const tab{"goink\tfrob"}; -+std::string const tab{R"(goink frob)"}; + // #TEST#: RAW2 +-std::string const newline{"goink\nfrob"}; ++std::string const newline{R"(goink ++frob)"}; - // #TEST#: RAW4 - std::string const single_quote{"goink\'frob"}; + // #TEST#: RAW3 + std::string const tab{"goink\tfrob"}; diff --git a/results/diffs/RAW9.txt b/results/diffs/RAW9.txt index 5d18064..cd253f4 100644 --- a/results/diffs/RAW9.txt +++ b/results/diffs/RAW9.txt @@ -1,5 +1,5 @@ diff --git a/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp b/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp -index 19ce6b0..47df928 100644 +index 5cdf789..951d627 100644 --- a/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp +++ b/RefactorTest/ReplaceStringLiteralWithRawStringLiteral.cpp @@ -30,7 +30,7 @@ std::string const regex{"goink\\(one|two\\)\\\\\\?.*\\nfrob"}; @@ -10,4 +10,4 @@ index 19ce6b0..47df928 100644 +std::string const contains_sentinel{R"delimiter(whoops)")delimiter"}; // #TEST#: RAW10 - std::string const contains_delim{"whoops)\")delim\""}; + std::string const contains_delim{"whoops)\")delimiter\""};