Skip to main content

@rbxts/expect > Assertion > even

Assertion.even() method

Asserts that the actual value is an even number.

Signature:

even(): Assertion<number>;

Returns:

Assertion<number>

Remarks

An even number is one that can be divided by 2, without any remainder.

Example

expect(4).to.be.even();