tts v2.3.0
The Tiny Test System
 
Loading...
Searching...
No Matches
sequence.hpp File Reference

Namespaces

namespace  tts
 Main TTS namespace.
 

Macros

#define TTS_ALL_ABSOLUTE_EQUAL(L, R, N, ...)   TTS_ALL(L,R, ::tts::absolute_distance,N,"unit", __VA_ARGS__ )
 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, ...)   TTS_ALL_ABSOLUTE_EQUAL(L,R, 0 __VA_ARGS__ )
 Checks if all elements of two sequences are all equal and that their sizes are equal.
 
#define TTS_ALL_IEEE_EQUAL(L, R, ...)   TTS_ALL_ULP_EQUAL(L,R,0, __VA_ARGS__)
 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, ...)   TTS_ALL(L,R, ::tts::relative_distance,N,"%" , __VA_ARGS__ )
 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, ...)   TTS_ALL(L,R, ::tts::ulp_distance ,N,"ULP" , __VA_ARGS__ )
 Checks if all elements of two sequences are within a given ULP distance and that their sizes are equal.