assertGreater
import { assertGreater } from "jsr:@ende/assert";function
function assertGreater<T>(actual: T, expected: T, msg?: string): voidMake an assertion that actual is greater than expected.
If not then throw.
actual: TThe actual value to compare.
expected: TThe expected value to compare.
msg?: stringThe optional message to display if the assertion fails.
Example: Usage
import { assertGreater } from "@ende/assert";
assertGreater(2, 1); // Doesn't throw
assertGreater(1, 1); // Throws
assertGreater(0, 1); // Throws