|
|
|
|
@ -15,7 +15,7 @@
|
|
|
|
|
### 3. Assertions |
|
|
|
|
- `using Catch::Matchers::WithinAbs;` after includes |
|
|
|
|
- `REQUIRE_THAT(value, WithinAbs(expected, tolerance))` — never `Approx()` |
|
|
|
|
- **Always use named tolerance constants** — never hardcode raw numbers in `WithinAbs()`. |
|
|
|
|
- **Always use named tolerance constants** — never hardcode raw numbers for tolerance in `WithinAbs()`. |
|
|
|
|
|
|
|
|
|
#### Tolerance Reference |
|
|
|
|
| Constant | Value | Use for | |
|
|
|
|
|