Function assertGreaterOrEqual

  • Make an assertion that actual is greater than or equal to expected. If not then throw.

    Type Parameters

    • T

    Parameters

    • actual: T
    • expected: T
    • Optional msg: string

    Returns void

    Since

    24.7.0

    Example

    import { assertGreaterOrEqual } from "assert";

    assertGreaterOrEqual(2, 1); // Doesn't throw
    assertGreaterOrEqual(1, 1); // Doesn't throw
    assertGreaterOrEqual(0, 1); // Throws