aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_strings.c')
-rw-r--r--src/util/test_strings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/test_strings.c b/src/util/test_strings.c
index e5247ad91..e0c3cfebf 100644
--- a/src/util/test_strings.c
+++ b/src/util/test_strings.c
@@ -87,7 +87,7 @@ main (int argc, char *argv[])
87 WANT ("btx", b); 87 WANT ("btx", b);
88 if (0 != GNUNET_STRINGS_buffer_tokenize (buf, 2, 2, &r, &b)) 88 if (0 != GNUNET_STRINGS_buffer_tokenize (buf, 2, 2, &r, &b))
89 return 1; 89 return 1;
90 at.abs_value = 5000; 90 at.abs_value_us = 5000000;
91 bc = GNUNET_STRINGS_absolute_time_to_string (at); 91 bc = GNUNET_STRINGS_absolute_time_to_string (at);
92 /* bc should be something like "Wed Dec 31 17:00:05 1969" 92 /* bc should be something like "Wed Dec 31 17:00:05 1969"
93 * where the details of the day and hour depend on the timezone; 93 * where the details of the day and hour depend on the timezone;
@@ -105,7 +105,7 @@ main (int argc, char *argv[])
105 bc = GNUNET_STRINGS_absolute_time_to_string (at); 105 bc = GNUNET_STRINGS_absolute_time_to_string (at);
106 GNUNET_assert (GNUNET_OK == 106 GNUNET_assert (GNUNET_OK ==
107 GNUNET_STRINGS_fancy_time_to_absolute (bc, &atx)); 107 GNUNET_STRINGS_fancy_time_to_absolute (bc, &atx));
108 GNUNET_assert (atx.abs_value == at.abs_value); 108 GNUNET_assert (atx.abs_value_us == at.abs_value_us);
109 109
110 GNUNET_log_skip (2, GNUNET_NO); 110 GNUNET_log_skip (2, GNUNET_NO);
111 b = GNUNET_STRINGS_to_utf8 ("TEST", 4, "unknown"); 111 b = GNUNET_STRINGS_to_utf8 ("TEST", 4, "unknown");
@@ -116,7 +116,7 @@ main (int argc, char *argv[])
116 GNUNET_STRINGS_fancy_time_to_relative ("15m", &rt)); 116 GNUNET_STRINGS_fancy_time_to_relative ("15m", &rt));
117 GNUNET_assert (GNUNET_OK == 117 GNUNET_assert (GNUNET_OK ==
118 GNUNET_STRINGS_fancy_time_to_relative ("15 m", &rtx)); 118 GNUNET_STRINGS_fancy_time_to_relative ("15 m", &rtx));
119 GNUNET_assert (rt.rel_value == rtx.rel_value); 119 GNUNET_assert (rt.rel_value_us == rtx.rel_value_us);
120 120
121 return 0; 121 return 0;
122} 122}