Forked from
Hammer / hammer
907 commits behind the upstream repository.
-
Peter Johnson authored
effects throughout, including use of inttypes.h/PRI[ud]64 because printf() is still stuck in a long world, conversion of %lu to %zu for printing values of type size_t, and changing/renaming the g_check_cmp* family of functions.
t_misc.c 445 B
#include <glib.h>
#include "test_suite.h"
#include "hammer.h"
static void test_tt_user(void) {
g_check_cmp_int32(TT_USER, >, TT_NONE);
g_check_cmp_int32(TT_USER, >, TT_BYTES);
g_check_cmp_int32(TT_USER, >, TT_SINT);
g_check_cmp_int32(TT_USER, >, TT_UINT);
g_check_cmp_int32(TT_USER, >, TT_SEQUENCE);
g_check_cmp_int32(TT_USER, >, TT_ERR);
}
void register_misc_tests(void) {
g_test_add_func("/core/misc/tt_user", test_tt_user);
}