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