@rbxts/expect > Assertion > positive
Assertion.positive() method
Asserts that the value is a positive number.
Signature:
positive(): Assertion<number>;
Returns:
Assertion<number>
Remarks
A positive number is any number greater than zero.
Example
expect(1).to.be.positive();
expect(0).to.not.be.positive();
expect(-1).to.not.be.positive();