aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-03 13:00:15 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-03 13:00:15 -0500
commit8db8fda43ffdf0a19eb6febfaadb6b1164973807 (patch)
tree47cbcca06e46d819b294850a472f84dd65cfa389 /src/test/test_router.c
parent696b484d4dc2e78ff8cf0f7c512d0dc3297197d9 (diff)
downloadtor-8db8fda43ffdf0a19eb6febfaadb6b1164973807.tar.gz
tor-8db8fda43ffdf0a19eb6febfaadb6b1164973807.zip
check-spaces fixes for test_router.c
Diffstat (limited to 'src/test/test_router.c')
-rw-r--r--src/test/test_router.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test/test_router.c b/src/test/test_router.c
index c13ccc643e..5e816564d9 100644
--- a/src/test/test_router.c
+++ b/src/test/test_router.c
@@ -11,22 +11,21 @@
#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),
"$AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
-done:
+ done:
return;
}