diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-05 18:33:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-05 18:33:52 +0000 |
commit | f02be02356a6cedcec2b01d5046e5d5cba0797ad (patch) | |
tree | 1cb0b87b6d886fd4c5db5e8d14807d31b5a67828 /src/or/test.c | |
parent | 03ef2156c93523cb548ea20b41e554b939964c29 (diff) | |
download | tor-f02be02356a6cedcec2b01d5046e5d5cba0797ad.tar.gz tor-f02be02356a6cedcec2b01d5046e5d5cba0797ad.zip |
r11639@catbus: nickm | 2007-02-05 13:33:38 -0500
Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition.
svn:r9483
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/or/test.c b/src/or/test.c index 77e6e9f2da..6de1ac7f10 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -654,17 +654,7 @@ test_util(void) test_streq(buf, "Testing123"); /* Test tor_strpartition() */ - test_assert(! tor_strpartition(buf, sizeof(buf), "abcdefg", "##", 3, - TERMINATE_IF_EVEN)); - test_streq(buf, "abc##def##g"); - test_assert(! tor_strpartition(buf, sizeof(buf), "abcdefg", "##", 3, - ALWAYS_TERMINATE)); - test_streq(buf, "abc##def##g##"); - test_assert(! tor_strpartition(buf, sizeof(buf), "abcdefghi", "##", 3, - TERMINATE_IF_EVEN)); - test_streq(buf, "abc##def##ghi##"); - test_assert(! tor_strpartition(buf, sizeof(buf), "abcdefghi", "##", 3, - NEVER_TERMINATE)); + test_assert(! tor_strpartition(buf, sizeof(buf), "abcdefghi", "##", 3)); test_streq(buf, "abc##def##ghi"); /* Test parse_addr_port */ |