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