Interface AssertFunction

Callable [[Assert]] interface.

Hierarchy

  • Asserts that condition is truthy.

    Parameters

    • condition: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if condition is falsy.

Methods

  • Asserts that lhs [[Values.compare structurally orders the same as]] rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs does not structurally order before or the same as rhs.

  • Asserts that lhs [[Values.compare structurally orders after]] rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs does not structurally order after rhs.

  • Asserts that lhs [[Values.compare structurally orders after or the same as]] rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs does not structurally order after or the same as rhs.

  • Asserts that lhs [[Values.compare structurally orders before]] rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs does not structurally order before rhs.

  • Asserts that lhs [[Values.compare structurally orders before or the same as]] rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs does not structurally order before or the same as rhs.

  • Asserts that lhs does not [[Values.compare structurally order the same as]] rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs does structurally order before or the same as rhs.

  • Asserts that lhs does not [[Values.compare structurally order after]] rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs does structurally order after rhs.

  • Asserts that lhs does not [[Values.compare structurally order after or the same as]] rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs does structurally order after or the same as rhs.

  • Asserts that lhs does not [[Values.compare structurally order before]] rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs does structurally order before rhs.

  • Asserts that lhs does not [[Values.compare structurally order before or the same as]] rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs does structurally order before or the same as rhs.

  • Asserts that lhs is [[Values.equal structurally equal]] to rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is not structurally equal to rhs.

  • Asserts that lhs is [[Values.equivalent structurally equivalent]] to rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is not structurally equivalent to rhs.

  • Asserts that lhs is greater than (>) rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is not greater than (!>) rhs.

  • Asserts that lhs is greater than or equal (>=) to rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is not greater than or equal (!>=) to rhs.

  • Asserts that lhs is identical (===) to rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is not identical (!==) to rhs.

  • Asserts that object has the prototype of constructor in its prototype chain.

    Parameters

    • object: unknown
    • constructor: Function
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if object does not have the prototype of constructor in its prototype chain.

  • Asserts that lhs is less than (<) rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is not less than (!<) rhs.

  • Asserts that lhs is less than or equal (<=) to rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is not less than or equal (!<=) to rhs.

  • Asserts that lhs is not [[Values.equal structurally equal]] to rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is structurally equal to rhs.

  • Asserts that lhs is not [[Values.equivalent structurally equivalent]] to rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is structurally equivalent to rhs.

  • Asserts that lhs is not greater than (!>) rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is greater than (>) rhs.

  • Asserts that lhs is not greater than or equal (!>=) to rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is greater than or equal (>=) to rhs.

  • Asserts that lhs is not identical (!==) to rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is identical (===) to rhs.

  • Asserts that object does not have the prototype of constructor in its prototype chain.

    Parameters

    • object: unknown
    • constructor: Function
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if object does have the prototype of constructor in its prototype chain.

  • Asserts that lhs is not less than (!<) rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is less than (<) rhs.

  • Asserts that lhs is not less than or equal (!<=) to rhs.

    Parameters

    • lhs: unknown
    • rhs: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if lhs is less than or equal (<=) to rhs.

  • Asserts that condition is falsy.

    Parameters

    • condition: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if condition is truthy.

  • Asserts that condition is truthy.

    Parameters

    • condition: unknown
    • Optional message: string

    Returns void

    Throws

    [[AssertException]] with message if condition is falsy.

Generated using TypeDoc