assertLess
import { assertLess } from "jsr:@ende/assert";function
function assertLess<T>(actual: T, expected: T, msg?: string): voidMake an assertion that actual is less 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 { assertLess } from "@ende/assert";
assertLess(1, 2); // Doesn't throw
assertLess(2, 1); // Throws