aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest-serializer
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-08-01 16:42:22 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-08-02 01:01:41 +0300
commit6254448640530240dc9199bed60cd5568cbaf601 (patch)
tree4f859f61f1980bde1027fd3e22573157e9b5bd4b /tests/manifest-serializer
parent12d0fb176edd8220f80f706d3fdc33431e178695 (diff)
Add manifest_parser::split_comment() and manifest_serializer::merge_comment()
Diffstat (limited to 'tests/manifest-serializer')
-rw-r--r--tests/manifest-serializer/driver.cxx8
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