Protect some parts of code from clang-format

This commit is contained in:
Alexey Sokolov
2015-12-07 00:12:20 +00:00
parent 7869de1e0f
commit 02f8749a8b
4 changed files with 10 additions and 0 deletions

View File

@@ -49,12 +49,14 @@ protected:
};
TEST_F(EscapeTest, Test) {
// clang-format off
// input url html sql msgtag
testString("abcdefg","abcdefg", "abcdefg", "abcdefg", "abcdefg");
testString("\n\t\r", "%0A%09%0D", "\n\t\r", "\\n\\t\\r", "\\n\t\\r");
testString("'\"", "%27%22", "'"", "\\'\\\"", "'\"");
testString("&<>", "%26%3C%3E", "&amp;&lt;&gt;", "&<>", "&<>");
testString(" ;", "+%3B", " ;", " ;", "\\s\\:");
// clang-format on
}
TEST(StringTest, Bool) {