import test.util; import std.array : join; auto ctAlgo = Deflate.init; auto rtAlgo = squizAlgo(Deflate.init); const len = 10_000; const phrase = cast(const(ubyte)[]) "Some very repetitive phrase.\n"; const input = generateRepetitiveData(len, phrase).join(); const ctSquized = only(input).squiz(ctAlgo).join(); const rtSquized = only(input).squiz(rtAlgo).join(); assert(ctSquized == rtSquized);
Get a runtime type for the provided algorithm