Go to the source code of this file.
◆ CTX_TESTS
Value:
static void test_srn_hash()
static void test_engine_make()
Definition at line 23 of file engine_tests.h.
23#define CTX_TESTS(X) \
24 X("engine::make", test_engine_make), X("engine::srn_hash", test_srn_hash)
◆ test_engine_make()
| static void test_engine_make |
( |
| ) |
|
|
static |
Definition at line 26 of file engine_tests.h.
26 {
31}
#define ASSERT_NOT_NULL(x)
#define MAKE_ENGINE(mm, engine)
◆ test_srn_hash()
| static void test_srn_hash |
( |
| ) |
|
|
static |
Definition at line 35 of file engine_tests.h.
35 {
37
38 engine->seed = 0xA5F17C3DU;
39
40 const char *data = "serene";
43
44 typedef struct d {
45 int foo;
46 int bar;
47 } d;
48
49 const d test1 = {.foo = 10, .bar = 22};
50 const d test2 = {.foo = 10, .bar = 12};
51
56}
srn_hash_t srn_hash(const srn_engine_t *engine, const void *data, size_t len)