diff options
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 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. // |