12 #ifndef TEST_HELPERS_H
13 #define TEST_HELPERS_H
19 template<
typename FUN>
21 for (
int i = start; i <= end; ++i) {
23 out.
nprintf(20,
"%*i", width, res);
26 template<
typename FUN>
28 for (
int i = start; i <= end; ++i) {
31 sprintf(buffer,
"[%i]", res);
32 out.
nprintf(30,
"%*s", width+2, buffer);
36 template<
typename FUN>
46 #error test_helpers.h included twice
47 #endif // TEST_HELPERS_H
char * collectIntFunResults(FUN fun, int start, int end, int width, int try_underflow, int try_overflow)
char buffer[MESSAGE_BUFFERSIZE]
static HelixNrInfo * start
void streamIntFunResults(GBS_strstruct &out, FUN fun, int start, int end, int width)
void streamIntFunResultsInBrackets(GBS_strstruct &out, FUN fun, int start, int end, int width)
void nprintf(size_t maxlen, const char *templat,...) __ATTR__FORMAT_MEMBER(2)