// add.ts
/**
* @example add(1, 2)
* //=> 3
*/
export const add = (a: number, b: number) => a + b
// doc_test.ts
import { doctest } from "https://deno.land/x/doctest@0.3.0/mod.js"
Deno.test("doctest", doctest("./add.ts"))
$ deno test --allow-read
running 1 test from ./doc_test.ts
doctest ...┌ ⚠️ Deno requests network access to "deno.land".
├ Requested by `Deno.permissions.query()` API.
├ Run again with --allow-net to bypass this prompt.
└ Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all net permissions) >
I'm not sure what does this means.
I'm not sure what does this means.