Matchers that perform numeric comparisons.
Matches if object is a number close to a given value, within a given delta.
Parameters: |
|
---|
This matcher compares the evaluated object against value to see if the difference is within a positive delta.
Example:
close_to(3.0, 0.25)
Confirm that ‘value’ can be treated numerically; duck-test accordingly
Matches if object is greater than a given value.
Parameters: | value – The value to compare against. |
---|
Matches if object is greater than or equal to a given value.
Parameters: | value – The value to compare against. |
---|
Matches if object is less than a given value.
Parameters: | value – The value to compare against. |
---|
Matches if object is less than or equal to a given value.
Parameters: | value – The value to compare against. |
---|