-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Replace String Literal With Raw String Literal tests
- Loading branch information
1 parent
2ceb3e4
commit 8367746
Showing
4 changed files
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters