diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-02 00:14:47 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-02 07:04:47 +0200 |
commit | 3da13703991d05ab97639e7db52a92846e68f31a (patch) | |
tree | d2efd75871ca838a6ea685dac8921f424dcb1161 /tests/manifest-serializer | |
parent | 502c34c80d80791d04a8b79bc9e877dc0f32e33d (diff) |
Fix manifest serializer not to break line after backslash
Diffstat (limited to 'tests/manifest-serializer')
-rw-r--r-- | tests/manifest-serializer/driver.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/manifest-serializer/driver.cxx b/tests/manifest-serializer/driver.cxx index 147ce48..d148f12 100644 --- a/tests/manifest-serializer/driver.cxx +++ b/tests/manifest-serializer/driver.cxx @@ -147,10 +147,21 @@ main () " Zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"); + // Hard break after the backslash/delayed hard break. + // + string l5 ("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\" + "Yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"); + + string e5 ("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\Y\\\n" + "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"); + assert (test ({{"","1"},{"a",l1},{"",""},{"",""}}, ": 1\na: " + e1 + "\n")); assert (test ({{"","1"},{"a",l2},{"",""},{"",""}}, ": 1\na: " + e2 + "\n")); assert (test ({{"","1"},{"a",l3},{"",""},{"",""}}, ": 1\na: " + e3 + "\n")); assert (test ({{"","1"},{"a",l4},{"",""},{"",""}}, ": 1\na: " + e4 + "\n")); + assert (test ({{"","1"},{"a",l5},{"",""},{"",""}}, ": 1\na: " + e5 + "\n")); // Multi-line value. |