From ddd89c22d5af422dccf1398337b327b70f5b2f00 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Thu, 31 Jul 2014 02:09:44 +0200 Subject: [PATCH] Updated Loader unittest. --- source/dyaml/loader.d | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/dyaml/loader.d b/source/dyaml/loader.d index 08c8e48..b6398d5 100644 --- a/source/dyaml/loader.d +++ b/source/dyaml/loader.d @@ -360,17 +360,15 @@ struct Loader unittest { - import std.stdio; - string yaml_input = "red: '#ff0000'\n" "green: '#00ff00'\n" "blue: '#0000ff'"; - import std.stream; - auto colors = Loader(new MemoryStream(cast(char[])yaml_input)).load(); + auto colors = Loader(cast(void[])yaml_input).load(); foreach(string color, string value; colors) { + import std.stdio; writeln(color, " is ", value, " in HTML/CSS"); } }