diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-28 17:34:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-28 17:34:07 +0000 |
commit | deef370a1c4ba044d58f55108d55dbf6ce7a066b (patch) | |
tree | 5d9115a6a5487e35b8cfcc1871d24b07a65f64cb /src/or | |
parent | b921d28c5b0321f9ff499b89c77399d2ba95b005 (diff) | |
download | tor-deef370a1c4ba044d58f55108d55dbf6ce7a066b.tar tor-deef370a1c4ba044d58f55108d55dbf6ce7a066b.tar.gz |
r11987@catbus: nickm | 2007-02-28 12:34:04 -0500
add another u64-related unit test.
svn:r9681
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/test.c b/src/or/test.c index b9afb9978..194d50643 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -707,6 +707,11 @@ test_util(void) tor_parse_uint64("12345678901",10,500,INT32_MAX, &i, &cp)); test_assert(i == 0); + /* Test printf with uint64 */ + tor_snprintf(buf, sizeof(buf), "x!"U64_FORMAT"!x", + U64_PRINTF_ARG(U64_LITERAL(12345678901))); + test_streq(buf, "x!12345678901!x"); + /* Test parse_line_from_str */ strlcpy(buf, "k v\n" " key value with spaces \n" "keykey val\n" "k2\n" |