std/assert/less_test.ts

11 lines
270 B
TypeScript
Raw Normal View History

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertLess, assertThrows } from "./mod.ts";
Deno.test("assertLess", () => {
assertLess(1, 2);
assertLess(1n, 2n);
assertLess(1, 1.1);
assertThrows(() => assertLess(2, 1));
});