aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r--src/test/test_util.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 9da4cb799..0f9d1a769 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -50,7 +50,6 @@ test_util_time(void)
test_eq(-1005000L, tv_udiff(&start, &end));
-
/* Test tor_timegm */
/* The test values here are confirmed to be correct on a platform
@@ -77,7 +76,6 @@ test_util_time(void)
a_time.tm_mday = 10;
test_eq((time_t) -1, tor_timegm(&a_time));
-
/* Test {format,parse}_rfc1123_time */
format_rfc1123_time(timestr, 0);
@@ -110,7 +108,6 @@ test_util_time(void)
test_eq(-1, parse_rfc1123_time("Wed, 30 Mar 2011 23:59:61 GMT", &t_res));
#endif
-
/* Test parse_iso_time */
t_res = 0;
@@ -140,7 +137,6 @@ test_util_time(void)
test_eq(-1, parse_iso_time("2011-00-30 23:59:59 GMT", &t_res));
test_eq(-1, parse_iso_time("2011-03-30 23:59", &t_res));
-
/* Test tor_gettimeofday */
end.tv_sec = 4;
@@ -154,7 +150,6 @@ test_util_time(void)
/* We might've timewarped a little. */
tt_int_op(tv_udiff(&start, &end), >=, -5000);
-
/* Test format_iso_time */
tv.tv_sec = (time_t)1326296338;
@@ -910,7 +905,8 @@ test_util_strmisc(void)
wrap_string(sl, "A test of string wrapping...", 6, "### ", "# ");
cp = smartlist_join_strings(sl, "", 0, NULL);
- test_streq(cp, "### A\n# test\n# of\n# stri\n# ng\n# wrap\n# ping\n# ...\n");
+ test_streq(cp,
+ "### A\n# test\n# of\n# stri\n# ng\n# wrap\n# ping\n# ...\n");
tor_free(cp);
SMARTLIST_FOREACH(sl, char *, cp, tor_free(cp));
smartlist_clear(sl);
@@ -924,7 +920,8 @@ test_util_strmisc(void)
wrap_string(sl, "Small test", 6, "### ", "#### ");
cp = smartlist_join_strings(sl, "", 0, NULL);
- test_streq(cp, "### Sm\n#### a\n#### l\n#### l\n#### t\n#### e\n#### s\n#### t\n");
+ test_streq(cp, "### Sm\n#### a\n#### l\n#### l\n#### t\n#### e"
+ "\n#### s\n#### t\n");
tor_free(cp);
SMARTLIST_FOREACH(sl, char *, cp, tor_free(cp));
smartlist_clear(sl);