... | @@ -13,13 +13,13 @@ For each file, there is a field `"method"` that is used to define how to compare |
... | @@ -13,13 +13,13 @@ For each file, there is a field `"method"` that is used to define how to compare |
|
This method compares the absolute difference between the base and test result.
|
|
This method compares the absolute difference between the base and test result.
|
|
The field `"tolerance": [float]` contains the maximum-allowed difference between both values. If
|
|
The field `"tolerance": [float]` contains the maximum-allowed difference between both values. If
|
|
```math
|
|
```math
|
|
|/base - /test| <= /tolerance
|
|
| base - test | <= tolerance
|
|
```
|
|
```
|
|
the test succeeds.
|
|
the test succeeds.
|
|
|
|
|
|
##### "method": "relative"
|
|
##### "method": "relative"
|
|
|
|
|
|
This method compares the relative difference between two values: `|(test-base)/base| <= tolerance` or `|(test-base)/test| <= tolerance` if `base=0`. The field `"tolerance": [float]` contains the maximum-allowed difference.
|
|
This method compares the relative difference between two values: $| (test-base) / base | <= tolerance $ or `|(test-base)/test| <= tolerance` if `base=0`. The field `"tolerance": [float]` contains the maximum-allowed difference.
|
|
|
|
|
|
##### "method": "power"
|
|
##### "method": "power"
|
|
|
|
|
... | | ... | |