diff options
Diffstat (limited to 'tests/manifest-serializer/driver.cxx')
-rw-r--r-- | tests/manifest-serializer/driver.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/manifest-serializer/driver.cxx b/tests/manifest-serializer/driver.cxx index 69c1c71..dad96bd 100644 --- a/tests/manifest-serializer/driver.cxx +++ b/tests/manifest-serializer/driver.cxx @@ -213,6 +213,14 @@ main () ": 1\na: c:\\\\\n")); assert (test ({{"","1"},{"a","c:\\\nd:\\"},{"",""},{"",""}}, ": 1\na: \\\nc:\\\\\nd:\\\\\n\\\n")); + + // Manifest value/comment merging. + // + assert (manifest_serializer::merge_comment ("value; text", "comment") == + "value\\; text; comment"); + + assert (manifest_serializer::merge_comment ("value text", "") == + "value text"); } static string |