Skip to main content
Module

x/unitest/mod.ts>toBeGreaterThan

🃏 Deno-first universal unit testing framework
Latest
function toBeGreaterThan
Re-export
import { toBeGreaterThan } from "https://deno.land/x/unitest@v1.0.0-beta.82/mod.ts";

Use .toBeGreaterThan to compare actual > expected for number or bigint

import { expect, test } from "https://deno.land/x/unitest@$VERSION/mod.ts";

test("passes when value greater than", () => {
  expect(100).toBeGreaterThan(99);
  expect(100n).toBeGreaterThan(99n);
  expect(1).not.toBeGreaterThan(1);
});

Parameters

actual: number | bigint
expected: number | bigint