Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Trickey <howard.trickey@gmail.com>2021-03-08 01:03:24 +0300
committerHoward Trickey <howard.trickey@gmail.com>2021-03-08 01:03:24 +0300
commit7a34bd7c2886dfc812345c0b1649d63a9ee4666f (patch)
treeb1fc9ab35d035375841e7ee41490443f5d238391 /source/blender/blenlib/tests/BLI_string_test.cc
parent239a7d93ae04a7b9adb802dc81e5636c5735f53d (diff)
Fix modernize-raw-string-literal complaints from clang-tidy.
Diffstat (limited to 'source/blender/blenlib/tests/BLI_string_test.cc')
-rw-r--r--source/blender/blenlib/tests/BLI_string_test.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenlib/tests/BLI_string_test.cc b/source/blender/blenlib/tests/BLI_string_test.cc
index 88cecaa5fee..3f7db261ac0 100644
--- a/source/blender/blenlib/tests/BLI_string_test.cc
+++ b/source/blender/blenlib/tests/BLI_string_test.cc
@@ -845,12 +845,12 @@ TEST_F(StringEscape, Simple)
{"\\A", "\\\\A"},
{"A\\B", "A\\\\B"},
{"?", "?"},
- {"\"\\", "\\\"\\\\"},
- {"\\\"", "\\\\\\\""},
- {"\"\\\"", "\\\"\\\\\\\""},
+ {R"("\)", R"(\"\\)"},
+ {R"(\")", R"(\\\")"},
+ {R"("\")", R"(\"\\\")"},
- {"\"\"\"", "\\\"\\\"\\\""},
- {"\\\\\\", "\\\\\\\\\\\\"},
+ {R"(""")", R"(\"\"\")"},
+ {R"(\\\)", R"(\\\\\\)"},
};
testEscapeWords(equal);
@@ -868,9 +868,9 @@ TEST_F(StringEscape, Control)
{"\f", "\\f"},
{"A\n", "A\\n"},
{"\nA", "\\nA"},
- {"\n\r\t\a\b\f", "\\n\\r\\t\\a\\b\\f"},
- {"\n_\r_\t_\a_\b_\f", "\\n_\\r_\\t_\\a_\\b_\\f"},
- {"\n\\\r\\\t\\\a\\\b\\\f", "\\n\\\\\\r\\\\\\t\\\\\\a\\\\\\b\\\\\\f"},
+ {"\n\r\t\a\b\f", R"(\n\r\t\a\b\f)"},
+ {"\n_\r_\t_\a_\b_\f", R"(\n_\r_\t_\a_\b_\f)"},
+ {"\n\\\r\\\t\\\a\\\b\\\f", R"(\n\\\r\\\t\\\a\\\b\\\f)"},
};
testEscapeWords(escaped);