Slide 13
Slide 13 text
Deno.{Reader,Writer}
からStream API
への移行
互換性を担保するために、それぞれの実装に対して同一のテストを実
行します
Deno.test("commands", async (t) => {
for (const [type, connector] of [["v1", connectV1], ["v2", connectV2]]) {
await t.step(type, async (t) => {
await t.step("SET", async () => {
using client = await connector();
assertEquals(await client.set("key", "foo"), "OK");
});
});
}
});