Loading src/test/test_router.c +3 −4 Original line number Diff line number Diff line Loading @@ -11,17 +11,16 @@ #include "router.h" #include "test.h" /** Tese the case when node_get_by_id() returns NULL, node_describe_by_id * should return the base 16 encoding of the id. */ static void test_node_describe_by_id_null_node(void *arg) { const char ID[] = "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA" "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA"; (void) arg; #define ID "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA" /* make sure node_get_by_id returns NULL */ test_assert(!node_get_by_id(ID)); test_streq(node_describe_by_id(ID), Loading Loading
src/test/test_router.c +3 −4 Original line number Diff line number Diff line Loading @@ -11,17 +11,16 @@ #include "router.h" #include "test.h" /** Tese the case when node_get_by_id() returns NULL, node_describe_by_id * should return the base 16 encoding of the id. */ static void test_node_describe_by_id_null_node(void *arg) { const char ID[] = "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA" "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA"; (void) arg; #define ID "\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA\xAA" /* make sure node_get_by_id returns NULL */ test_assert(!node_get_by_id(ID)); test_streq(node_describe_by_id(ID), Loading