summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/package_json/basic/main.bench.ts
blob: 51bfc7bba1b6a1d02c6e039285eb79018c69fd79 (plain)
1
2
3
4
5
6
7
import { add } from "./main.ts";

Deno.bench("should add", () => {
  if (add(1, 2) !== 3) {
    throw new Error("Fail");
  }
});