diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-03 18:33:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-03 18:33:07 +0000 |
commit | 451f8b50452ae44c4319cfe55c666a45b9994e9f (patch) | |
tree | d88f565d8f7f74253af9d2a721978737b157782a /src/or/test.c | |
parent | 86ba00290b4e1f7095c1d34c46ac5b61273953be (diff) | |
download | tor-451f8b50452ae44c4319cfe55c666a45b9994e9f.tar tor-451f8b50452ae44c4319cfe55c666a45b9994e9f.tar.gz |
- Implement all of control interface except authentication, setconfig,
and actually making the sockets.
- Make sure that identity-based nicknames start with $.
- Use new string_join interface.
svn:r2661
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/test.c b/src/or/test.c index d278d771d..2cece29d7 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -566,19 +566,19 @@ test_util(void) { test_streq("a", smartlist_get(sl, 1)); test_streq("bc", smartlist_get(sl, 2)); test_streq("", smartlist_get(sl, 3)); - cp = smartlist_join_strings(sl, "", 0); + cp = smartlist_join_strings(sl, "", 0, NULL); test_streq(cp, "abcabc"); tor_free(cp); - cp = smartlist_join_strings(sl, "!", 0); + cp = smartlist_join_strings(sl, "!", 0, NULL); test_streq(cp, "abc!a!bc!"); tor_free(cp); - cp = smartlist_join_strings(sl, "XY", 0); + cp = smartlist_join_strings(sl, "XY", 0, NULL); test_streq(cp, "abcXYaXYbcXY"); tor_free(cp); - cp = smartlist_join_strings(sl, "XY", 1); + cp = smartlist_join_strings(sl, "XY", 1, NULL); test_streq(cp, "abcXYaXYbcXYXY"); tor_free(cp); - cp = smartlist_join_strings(sl, "", 1); + cp = smartlist_join_strings(sl, "", 1, NULL); test_streq(cp, "abcabc"); tor_free(cp); |