fix verbose test output

This commit is contained in:
Cameron Ross 2018-08-15 16:14:57 -03:00
parent 8c637e95ec
commit eff9fef7da
No known key found for this signature in database
GPG key ID: 777897D98DC91C54

View file

@ -85,7 +85,7 @@ void testEmitterOnData(string dataFilename, string canonicalFilename) @safe
{ {
writeln(dataFilename); writeln(dataFilename);
writeln("ORIGINAL:\n", readText(dataFilename)); writeln("ORIGINAL:\n", readText(dataFilename));
writeln("OUTPUT:\n", emitStream.toString); writeln("OUTPUT:\n", emitStream.data);
} }
auto loader2 = Loader.fromString(emitStream.data); auto loader2 = Loader.fromString(emitStream.data);
@ -115,7 +115,7 @@ void testEmitterOnCanonical(string canonicalFilename) @safe
static if(verbose) static if(verbose)
{ {
writeln("OUTPUT (canonical=", canonical, "):\n", writeln("OUTPUT (canonical=", canonical, "):\n",
emitStream.toString); emitStream.data);
} }
auto loader2 = Loader.fromString(emitStream.data); auto loader2 = Loader.fromString(emitStream.data);
loader2.name = "TEST"; loader2.name = "TEST";
@ -173,7 +173,7 @@ void testEmitterStyles(string dataFilename, string canonicalFilename) @safe
{ {
writeln("OUTPUT (", filename, ", ", to!string(flowStyle), ", ", writeln("OUTPUT (", filename, ", ", to!string(flowStyle), ", ",
to!string(style), ")"); to!string(style), ")");
writeln(emitStream.toString); writeln(emitStream.data);
} }
auto loader2 = Loader.fromString(emitStream.data); auto loader2 = Loader.fromString(emitStream.data);
loader2.name = "TEST"; loader2.name = "TEST";