diff options
Diffstat (limited to 'src/ext_depends/D-YAML/source/dyaml/dumper.d')
-rw-r--r-- | src/ext_depends/D-YAML/source/dyaml/dumper.d | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ext_depends/D-YAML/source/dyaml/dumper.d b/src/ext_depends/D-YAML/source/dyaml/dumper.d index 51f232f..03d3620 100644 --- a/src/ext_depends/D-YAML/source/dyaml/dumper.d +++ b/src/ext_depends/D-YAML/source/dyaml/dumper.d @@ -228,7 +228,7 @@ struct Dumper dumper.explicitStart = false; dumper.YAMLVersion = null; dumper.dump(stream, node); - assert(stream.data == "[!!str 'Hello world!', [!!str 'Hello', !!str 'world!']]\n"); + assert(stream.data == "['Hello world!', ['Hello', 'world!']]\n"); } // Explicit document start/end markers @safe unittest @@ -245,6 +245,17 @@ struct Dumper //account for newline at end assert(stream.data[$-4..$-1] == "..."); } +@safe unittest +{ + auto stream = new Appender!string(); + auto node = Node([Node("Te, st2")]); + auto dumper = dumper(); + dumper.explicitStart = true; + dumper.explicitEnd = false; + dumper.YAMLVersion = null; + dumper.dump(stream, node); + assert(stream.data == "--- ['Te, st2']\n"); +} // No explicit document start/end markers @safe unittest { |