big-endian fixes to test_primitives and more logging to track down error in test_dht

This commit is contained in:
Arvid Norberg
2013-06-23 01:22:44 +00:00
parent d376c6c636
commit 78da577e2b
2 changed files with 17 additions and 3 deletions

View File

@@ -1294,7 +1294,8 @@ int test_main()
for (int i = 1; i < 255; ++i)
{
bool hex = strchr(hex_chars, i) != NULL;
TEST_EQUAL(is_hex((char const*)&i, 1), hex);
char c = i;
TEST_EQUAL(is_hex(&c, 1), hex);
}
TEST_EQUAL(hex_to_int('0'), 0);