diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2022-05-26 10:08:50 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2022-05-27 15:33:38 -0400 |
commit | 8bd1faf2f33e455831b80df4493195848fd03b99 (patch) | |
tree | b8ef070f1d4b1905524e4664f0c567afd0fab97f /src/ext_depends/D-YAML/source/dyaml/dumper.d | |
parent | housekeeping (diff) |
sub dependency update, updates D-YAML
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 { |