Macros for performing sequence-wide checks. More...
Macros | |
| #define | TTS_ALL_ABSOLUTE_EQUAL(L, R, N, ...) |
| Checks if all elements of two sequences are within a given absolute distance and that their sizes are equal. | |
| #define | TTS_ALL_EQUAL(L, R, ...) |
| Checks if all elements of two sequences are all equal and that their sizes are equal. | |
| #define | TTS_ALL_IEEE_EQUAL(L, R, ...) |
| Checks if all elements of two sequences are within 0 ULP and that their sizes are equal. | |
| #define | TTS_ALL_RELATIVE_EQUAL(L, R, N, ...) |
| Checks if all elements of two sequences are within a given relative percentage and that their sizes are equal. | |
| #define | TTS_ALL_ULP_EQUAL(L, R, N, ...) |
| Checks if all elements of two sequences are within a given ULP distance and that their sizes are equal. | |
| #define TTS_ALL_ABSOLUTE_EQUAL | ( | L, | |
| R, | |||
| N, | |||
| ... ) |
#include <tts/test/sequence.hpp>
Checks if all elements of two sequences are within a given absolute distance and that their sizes are equal.
This comparison is performed by using the proper tts::absolute_check overload.
| L,R | Sequences to compare. |
| N | Maximum absolute distance accepted between L and R. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_ALL_EQUAL | ( | L, | |
| R, | |||
| ... ) |
#include <tts/test/sequence.hpp>
Checks if all elements of two sequences are all equal and that their sizes are equal.
This comparison is performed by using the proper tts::absolute_check overload.
| L,R | Sequences to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_ALL_IEEE_EQUAL | ( | L, | |
| R, | |||
| ... ) |
#include <tts/test/sequence.hpp>
Checks if all elements of two sequences are within 0 ULP and that their sizes are equal.
This also allow for infinites and NaNs to be compared equal if both values are the same infinites or are both $NaN$. This comparison is performed by using the proper tts::ulp_check overload.
| L,R | Sequences to compare. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_ALL_RELATIVE_EQUAL | ( | L, | |
| R, | |||
| N, | |||
| ... ) |
#include <tts/test/sequence.hpp>
Checks if all elements of two sequences are within a given relative percentage and that their sizes are equal.
This comparison is performed by using the proper tts::relative_check overload.
| L,R | Sequences 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. |
| #define TTS_ALL_ULP_EQUAL | ( | L, | |
| R, | |||
| N, | |||
| ... ) |
#include <tts/test/sequence.hpp>
Checks if all elements of two sequences are within a given ULP distance and that their sizes are equal.
This comparison is performed by using the proper tts::ulp_check overload.
| L,R | Sequences to compare. |
| N | Maximum ULPs accepted between L and R. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |