aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest-serializer/driver.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-01 23:22:43 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-01 23:22:43 +0300
commita32378a9aedd61c51166432ecd26a6a5dd405ebb (patch)
tree39c11d2f1a852fce90b4b3dd3d9b35a0cde2bd61 /tests/manifest-serializer/driver.cxx
parent1d53d806a603044a08e359369eec72b02ba884e3 (diff)
Treat CR specially by manifest serializer
Diffstat (limited to 'tests/manifest-serializer/driver.cxx')
-rw-r--r--tests/manifest-serializer/driver.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/manifest-serializer/driver.cxx b/tests/manifest-serializer/driver.cxx
index 3a8aef8..69c1c71 100644
--- a/tests/manifest-serializer/driver.cxx
+++ b/tests/manifest-serializer/driver.cxx
@@ -184,6 +184,17 @@ main ()
assert (test ({{"","1"},{"a"," x "},{"",""},{"",""}},
": 1\na: \\\n x \n\\\n"));
+ // Carriage return character.
+ //
+ assert (test ({{"","1"},{"a","x\ry"},{"",""},{"",""}},
+ ": 1\na: \\\nx\ny\n\\\n"));
+ assert (test ({{"","1"},{"a","x\r"},{"",""},{"",""}},
+ ": 1\na: \\\nx\n\n\\\n"));
+ assert (test ({{"","1"},{"a","x\r\ny"},{"",""},{"",""}},
+ ": 1\na: \\\nx\ny\n\\\n"));
+ assert (test ({{"","1"},{"a","x\r\n"},{"",""},{"",""}},
+ ": 1\na: \\\nx\n\n\\\n"));
+
// Extra three x's are for the leading name part ("a: ") that we
// don't have.
//