import { assertStreamStartsWith } from "https://deno.land/x/aitertools@0.3.1/testing.ts";
Makes an assertion that the beginning elements of the actual
iterable are
in common with the elements of the expected
array.
import { assertStreamStartsWith } from "./testing.ts";
import { count } from "./infinite.ts";
Deno.test("your test name", async () => {
const stream = count(0, 5);
await assertStreamStartsWith(stream, [0, 5, 10, 15]);
});