Skip to main content

@rbxts/expect > Assertion > odd

Assertion.odd() method

Asserts that the actual value is an odd number.

Signature:

odd(): Assertion<number>;

Returns:

Assertion<number>

Remarks

An odd number is one that has a remainder when divided by 2.

That is, it can not be evenly divided by 2.

Example

expect(3).to.be.odd();