aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/source/dyaml/dumper.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-05-26 10:08:50 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2022-05-27 15:33:38 -0400
commit8bd1faf2f33e455831b80df4493195848fd03b99 (patch)
treeb8ef070f1d4b1905524e4664f0c567afd0fab97f /src/ext_depends/D-YAML/source/dyaml/dumper.d
parenthousekeeping (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.d13
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
{