diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-12 19:33:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-12 19:33:03 +0000 |
commit | f7404f6bb9db5ab292047f3129d4d19d53f72ed3 (patch) | |
tree | 5b1d55caa2c4ddf470bdb21c47708c76486cfd95 /src/or/test.c | |
parent | 19da1f36c285530d3a52c764ba1c464d3de88487 (diff) | |
download | tor-f7404f6bb9db5ab292047f3129d4d19d53f72ed3.tar.gz tor-f7404f6bb9db5ab292047f3129d4d19d53f72ed3.zip |
Use tor_parse_long in more places
svn:r2453
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c index 4d8bfb8d18..bb0a3db7d2 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -664,6 +664,10 @@ test_util() { test_eq(u16, 0); tor_free(cp); + /* Test tor_parse_long. */ + test_eq(10L, tor_parse_long("10",10,0,100,NULL,NULL)); + test_eq(0L, tor_parse_long("10",10,50,100,NULL,NULL)); + /* XXXX test older functions. */ smartlist_free(sl); } @@ -919,7 +923,7 @@ test_dir_format() ex2.policy_type = EXIT_POLICY_REJECT; ex2.addr = 18 << 24; ex2.msk = 0xFF000000u; - ex2.prt_min = ex1.prt_max = 24; + ex2.prt_min = ex2.prt_max = 24; ex2.next = NULL; r2.address = "tor.tor.tor"; r2.addr = 0x0a030201u; /* 10.3.2.1 */ |