aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/test.c b/src/or/test.c
index cf3505c0a8..a30d43e969 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -791,6 +791,14 @@ test_util(void) {
test_assert(strcmpend("abcdef", "dee")>0);
test_assert(strcmpend("ab", "abb")<0);
+ {
+ char tmpbuf[INET_NTOA_BUF_LEN];
+ struct in_addr in;
+ tor_inet_aton("18.244.0.188",&in);
+ tor_inet_ntoa(&in, tmpbuf, sizeof(tmpbuf));
+ test_streq(tmpbuf, "18.244.0.188");
+ }
+
/* XXXX test older functions. */
smartlist_free(sl);
}