to_be_less_than
Method of AlephExpectation.
Overloads
| Name | Description |
|---|---|
to_be_less_than(integer expected) -> void | Records a failure unless the actual numeric value is less than expected. |
to_be_less_than(const Object expected) -> void | Records a failure unless the actual numeric value is less than expected. |
to_be_less_than(const Object expected, const Map options) -> void | Records a failure unless the actual numeric value is less than expected. |
to_be_less_than(integer expected, const Map options) -> void | Records a failure unless the actual numeric value is less than expected. |
to_be_less_than(real expected, const Map options) -> void | Records a failure unless the actual numeric value is less than expected. |
to_be_less_than(real expected) -> void | Records a failure unless the actual numeric value is less than expected. |
to_be_less_than(integer expected) -> void
Records a failure unless the actual numeric value is less than expected.
Parameters
- expected: The comparison value.
Returns
Nothing. Failed expectations are collected in the active test result.
Example
expect(3).to_be_less_than(10)
to_be_less_than(const Object expected) -> void
Records a failure unless the actual numeric value is less than expected.
Parameters
- expected: The comparison value.
Returns
Nothing. Failed expectations are collected in the active test result.
Example
expect(3).to_be_less_than(10)
to_be_less_than(const Object expected, const Map options) -> void
Records a failure unless the actual numeric value is less than expected.
Parameters
- expected: The comparison value.
- options: Optional matcher options.
- message (String): Custom failure message to record when the matcher fails.
- stop (Bool): Stops collecting further expectations in the current test when this matcher fails.
Returns
Nothing. Failed expectations are collected in the active test result.
Example
expect(3).to_be_less_than(10, ["message": "expected a smaller value"])
to_be_less_than(integer expected, const Map options) -> void
Records a failure unless the actual numeric value is less than expected.
Parameters
- expected: The comparison value.
- options: Optional matcher options.
- message (String): Custom failure message to record when the matcher fails.
- stop (Bool): Stops collecting further expectations in the current test when this matcher fails.
Returns
Nothing. Failed expectations are collected in the active test result.
Example
expect(3).to_be_less_than(10, ["message": "expected a smaller value"])
to_be_less_than(real expected, const Map options) -> void
Records a failure unless the actual numeric value is less than expected.
Parameters
- expected: The comparison value.
- options: Optional matcher options.
- message (String): Custom failure message to record when the matcher fails.
- stop (Bool): Stops collecting further expectations in the current test when this matcher fails.
Returns
Nothing. Failed expectations are collected in the active test result.
Example
expect(3).to_be_less_than(10, ["message": "expected a smaller value"])
to_be_less_than(real expected) -> void
Records a failure unless the actual numeric value is less than expected.
Parameters
- expected: The comparison value.
Returns
Nothing. Failed expectations are collected in the active test result.
Example
expect(3).to_be_less_than(10)