New Loader ctor used in Emitter tests.

This commit is contained in:
Ferdinand Majerech 2014-07-31 03:16:22 +02:00
parent eb29c2626d
commit ee2df932a0

View file

@ -90,7 +90,7 @@ void testEmitterOnData(bool verbose, string dataFilename, string canonicalFilena
writeln("OUTPUT:\n", cast(string)emitStream.data);
}
auto loader2 = Loader(new MemoryStream(emitStream.data));
auto loader2 = Loader(emitStream.data.dup);
loader2.name = "TEST";
loader2.constructor = new Constructor;
loader2.resolver = new Resolver;
@ -120,7 +120,7 @@ void testEmitterOnCanonical(bool verbose, string canonicalFilename)
writeln("OUTPUT (canonical=", canonical, "):\n",
cast(string)emitStream.data);
}
auto loader2 = Loader(new MemoryStream(emitStream.data));
auto loader2 = Loader(emitStream.data.dup);
loader2.name = "TEST";
loader2.constructor = new Constructor;
loader2.resolver = new Resolver;
@ -179,7 +179,7 @@ void testEmitterStyles(bool verbose, string dataFilename, string canonicalFilena
to!string(style), ")");
writeln(emitStream.data);
}
auto loader2 = Loader(new MemoryStream(emitStream.data));
auto loader2 = Loader(emitStream.data.dup);
loader2.name = "TEST";
loader2.constructor = new Constructor;
loader2.resolver = new Resolver;