Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/tests/specs/test/doc_failure/main.ts

A modern runtime for JavaScript and TypeScript.
Latest
import * as deno from "https://deno.land/x/deno@v2.1.4/tests/specs/test/doc_failure/main.ts";
import { assertAlmostEquals } from "@std/assert/almost-equals";

const x = sub(3, 1);
const y = div(5, x);
assertAlmostEquals(y, 2.0); // throws