| #define TTS_RELATIVE_EQUAL | ( | L, | |
| R, | |||
| N, | |||
| ... | |||
| ) | TTS_PRECISION(L,R,N,"%" , ::tts::relative_distance, 8, __VA_ARGS__ ) |
Checks if values are within a given relative distance expressed as a percentage.
This comparison is performed by using the proper tts::relative_distance overload.
| L,R | Expressions to compare. |
| N | Maximum relative percentage accepted between L and R. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |