New Loader ctor used in Emitter tests.
This commit is contained in:
parent
eb29c2626d
commit
ee2df932a0
|
@ -90,7 +90,7 @@ void testEmitterOnData(bool verbose, string dataFilename, string canonicalFilena
|
||||||
writeln("OUTPUT:\n", cast(string)emitStream.data);
|
writeln("OUTPUT:\n", cast(string)emitStream.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto loader2 = Loader(new MemoryStream(emitStream.data));
|
auto loader2 = Loader(emitStream.data.dup);
|
||||||
loader2.name = "TEST";
|
loader2.name = "TEST";
|
||||||
loader2.constructor = new Constructor;
|
loader2.constructor = new Constructor;
|
||||||
loader2.resolver = new Resolver;
|
loader2.resolver = new Resolver;
|
||||||
|
@ -120,7 +120,7 @@ void testEmitterOnCanonical(bool verbose, string canonicalFilename)
|
||||||
writeln("OUTPUT (canonical=", canonical, "):\n",
|
writeln("OUTPUT (canonical=", canonical, "):\n",
|
||||||
cast(string)emitStream.data);
|
cast(string)emitStream.data);
|
||||||
}
|
}
|
||||||
auto loader2 = Loader(new MemoryStream(emitStream.data));
|
auto loader2 = Loader(emitStream.data.dup);
|
||||||
loader2.name = "TEST";
|
loader2.name = "TEST";
|
||||||
loader2.constructor = new Constructor;
|
loader2.constructor = new Constructor;
|
||||||
loader2.resolver = new Resolver;
|
loader2.resolver = new Resolver;
|
||||||
|
@ -179,7 +179,7 @@ void testEmitterStyles(bool verbose, string dataFilename, string canonicalFilena
|
||||||
to!string(style), ")");
|
to!string(style), ")");
|
||||||
writeln(emitStream.data);
|
writeln(emitStream.data);
|
||||||
}
|
}
|
||||||
auto loader2 = Loader(new MemoryStream(emitStream.data));
|
auto loader2 = Loader(emitStream.data.dup);
|
||||||
loader2.name = "TEST";
|
loader2.name = "TEST";
|
||||||
loader2.constructor = new Constructor;
|
loader2.constructor = new Constructor;
|
||||||
loader2.resolver = new Resolver;
|
loader2.resolver = new Resolver;
|
||||||
|
|
Loading…
Reference in a new issue