diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-07-05 22:00:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-07-31 14:37:41 +0300 |
commit | 064536ef079051dd0af53b7f311bef4aa4670ccb (patch) | |
tree | 741e629ab6644e853c92e254702b269bf771fee7 /tests/manifest-rewriter | |
parent | dfc1d78fd95694b65ce80be90970be9ef305f973 (diff) |
Serialize manifest using new-fashioned multi-line mode introducer (as in 'foo:<newline>\<newline>')
Diffstat (limited to 'tests/manifest-rewriter')
-rw-r--r-- | tests/manifest-rewriter/driver.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/manifest-rewriter/driver.cxx b/tests/manifest-rewriter/driver.cxx index 3b1dfe9..3a6c19f 100644 --- a/tests/manifest-rewriter/driver.cxx +++ b/tests/manifest-rewriter/driver.cxx @@ -67,26 +67,26 @@ namespace butl {{"a", "xyz"}, edit_cmd {"x", "y", "c"}, {"e", "123"}}) == ":1\na: xyz\nc:d\nx: y\ne: 123"); - assert (edit (":1\na: b", {{"a", "xy\nz"}}) == ":1\na:\\\nxy\nz\n\\"); + assert (edit (":1\na: b", {{"a", "xy\nz"}}) == ":1\na:\n\\\nxy\nz\n\\"); assert (edit (":1\na:\\\nxy\nz\n\\\nb: c", {{"a", "ab\ncd\ne"}}) == - ":1\na:\\\nab\ncd\ne\n\\\nb: c"); + ":1\na:\n\\\nab\ncd\ne\n\\\nb: c"); assert (edit (":1\na: \\\nxy\nz\n\\\nb: c", {{"a", "ab\ncd\ne"}}) == - ":1\na:\\\nab\ncd\ne\n\\\nb: c"); + ":1\na:\n\\\nab\ncd\ne\n\\\nb: c"); assert (edit (":1\na:\n\\\nxy\nz\n\\\nb: c", {{"a", "ab\ncd\ne"}}) == - ":1\na:\\\nab\ncd\ne\n\\\nb: c"); + ":1\na:\n\\\nab\ncd\ne\n\\\nb: c"); assert (edit (":1\n", {{"a", "b", ""}}) == ":1\na: b\n"); assert (edit (":1\n abc: b", {{"abc", "xyz"}}) == - ":1\n abc:\\\nxyz\n\\"); + ":1\n abc:\n\\\nxyz\n\\"); assert (edit (":1\n a\xD0\xB0g : b", {{"a\xD0\xB0g", "xyz"}}) == - ":1\n a\xD0\xB0g :\\\nxyz\n\\"); + ":1\n a\xD0\xB0g :\n\\\nxyz\n\\"); // Test editing of manifests that contains CR characters. // |