to_be_greater_than
Method of AlephExpectation.
Overloads
| Name | Description |
|---|---|
to_be_greater_than(const Object expected) -> void | Records a failure unless the actual numeric value is greater than expected. |
to_be_greater_than(integer expected) -> void | Records a failure unless the actual numeric value is greater than expected. |
to_be_greater_than(real expected, const Map options) -> void | Records a failure unless the actual numeric value is greater than expected. |
to_be_greater_than(real expected) -> void | Records a failure unless the actual numeric value is greater than expected. |
to_be_greater_than(const Object expected, const Map options) -> void | Records a failure unless the actual numeric value is greater than expected. |
to_be_greater_than(integer expected, const Map options) -> void | Records a failure unless the actual numeric value is greater than expected. |
to_be_greater_than(const Object expected) -> void
Records a failure unless the actual numeric value is greater than expected.
Parameters
- expected: The comparison value.
Returns
Nothing. Failed expectations are collected in the active test result.
Example
expect(10).to_be_greater_than(3)
to_be_greater_than(integer expected) -> void
Records a failure unless the actual numeric value is greater than expected.
Parameters
- expected: The comparison value.
Returns
Nothing. Failed expectations are collected in the active test result.
Example
expect(10).to_be_greater_than(3)
to_be_greater_than(real expected, const Map options) -> void
Records a failure unless the actual numeric value is greater 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(10).to_be_greater_than(3, ["message": "expected a larger value"])
to_be_greater_than(real expected) -> void
Records a failure unless the actual numeric value is greater than expected.
Parameters
- expected: The comparison value.
Returns
Nothing. Failed expectations are collected in the active test result.
Example
expect(10).to_be_greater_than(3)
to_be_greater_than(const Object expected, const Map options) -> void
Records a failure unless the actual numeric value is greater 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(10).to_be_greater_than(3, ["message": "expected a larger value"])
to_be_greater_than(integer expected, const Map options) -> void
Records a failure unless the actual numeric value is greater 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(10).to_be_greater_than(3, ["message": "expected a larger value"])