import { assertStreams } from "https://deno.land/x/aitertools@0.3.1/mod.ts";
Makes an assertion that the elements of the actual
iterable are equal to
the elements of the expected
array.
import { assertStreams } from "./testing.ts";
async function* gen() { yield "actual"; yield "elements"; }
Deno.test("your test name", async () => {
const stream = gen();
await assertStreams(stream, ["actual", "elements"]);
});