aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_strings.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-10-08 09:30:33 +0000
committerLRN <lrn1986@gmail.com>2013-10-08 09:30:33 +0000
commit70ef2c7616b29cbb91076ffb26148251d62eb351 (patch)
tree6e1367d0e6f625987ee96f5c60be015fef064c31 /src/util/test_strings.c
parent3044afcbbf0dbff0f0bc198aaedcb70cb4645197 (diff)
downloadgnunet-70ef2c7616b29cbb91076ffb26148251d62eb351.tar.gz
gnunet-70ef2c7616b29cbb91076ffb26148251d62eb351.zip
Update time conversion functions docs, test converting abs UTC time to string and back
Diffstat (limited to 'src/util/test_strings.c')
-rw-r--r--src/util/test_strings.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/test_strings.c b/src/util/test_strings.c
index 26ca5dc6a..839b81c04 100644
--- a/src/util/test_strings.c
+++ b/src/util/test_strings.c
@@ -106,6 +106,12 @@ main (int argc, char *argv[])
106 GNUNET_STRINGS_fancy_time_to_absolute (bc, &atx)); 106 GNUNET_STRINGS_fancy_time_to_absolute (bc, &atx));
107 GNUNET_assert (atx.abs_value_us == at.abs_value_us); 107 GNUNET_assert (atx.abs_value_us == at.abs_value_us);
108 108
109 at.abs_value_us = 50000000000;
110 bc = GNUNET_STRINGS_absolute_time_to_string (at);
111 GNUNET_assert (GNUNET_OK ==
112 GNUNET_STRINGS_fancy_time_to_absolute (bc, &atx));
113 GNUNET_assert (atx.abs_value_us == at.abs_value_us);
114
109 GNUNET_log_skip (2, GNUNET_NO); 115 GNUNET_log_skip (2, GNUNET_NO);
110 b = GNUNET_STRINGS_to_utf8 ("TEST", 4, "unknown"); 116 b = GNUNET_STRINGS_to_utf8 ("TEST", 4, "unknown");
111 GNUNET_log_skip (0, GNUNET_YES); 117 GNUNET_log_skip (0, GNUNET_YES);