Skip to main content

@rbxts/expect > Assertion > lt

Assertion.lt() method

Asserts that the value is less than value.

Signature:

lt(value: number): Assertion<number>;

Parameters

Parameter

Type

Description

value

number

A number that the actual value should be less than.

Returns:

Assertion<number>

Remarks

Type alias for lessThan.

Example

expect(5).to.be.lt(4);