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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/test_strings.c b/src/util/test_strings.c
index 0c7c56bcd..49895a43a 100644
--- a/src/util/test_strings.c
+++ b/src/util/test_strings.c
@@ -38,28 +38,28 @@ check ()
38 char *b; 38 char *b;
39 struct GNUNET_TIME_Absolute at; 39 struct GNUNET_TIME_Absolute at;
40 40
41 sprintf (buf, "4%s", _( /* size unit */ "b")); 41 sprintf (buf, "4 %s", _( /* size unit */ "b"));
42 b = GNUNET_STRINGS_byte_size_fancy (4); 42 b = GNUNET_STRINGS_byte_size_fancy (4);
43 WANT (buf, b); 43 WANT (buf, b);
44 sprintf (buf, "10%s", _( /* size unit */ "KiB")); 44 sprintf (buf, "10 %s", _( /* size unit */ "KiB"));
45 b = GNUNET_STRINGS_byte_size_fancy (10240); 45 b = GNUNET_STRINGS_byte_size_fancy (10240);
46 WANT (buf, b); 46 WANT (buf, b);
47 sprintf (buf, "10%s", _( /* size unit */ "TiB")); 47 sprintf (buf, "10 %s", _( /* size unit */ "TiB"));
48 b = GNUNET_STRINGS_byte_size_fancy (10240LL * 1024LL * 1024LL * 1024LL); 48 b = GNUNET_STRINGS_byte_size_fancy (10240LL * 1024LL * 1024LL * 1024LL);
49 WANT (buf, b); 49 WANT (buf, b);
50 sprintf (buf, "4%s", _( /* time unit */ "ms")); 50 sprintf (buf, "4 %s", _( /* time unit */ "ms"));
51 b = 51 b =
52 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply 52 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply
53 (GNUNET_TIME_UNIT_MILLISECONDS, 53 (GNUNET_TIME_UNIT_MILLISECONDS,
54 4)); 54 4));
55 WANT (buf, b); 55 WANT (buf, b);
56 sprintf (buf, "7%s", _( /* time unit */ "s")); 56 sprintf (buf, "7 %s", _( /* time unit */ "s"));
57 b = 57 b =
58 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply 58 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply
59 (GNUNET_TIME_UNIT_MILLISECONDS, 59 (GNUNET_TIME_UNIT_MILLISECONDS,
60 7 * 1000)); 60 7 * 1000));
61 WANT (buf, b); 61 WANT (buf, b);
62 sprintf (buf, "7%s", _( /* time unit */ "h")); 62 sprintf (buf, "7 %s", _( /* time unit */ "h"));
63 b = 63 b =
64 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply 64 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply
65 (GNUNET_TIME_UNIT_MILLISECONDS, 65 (GNUNET_TIME_UNIT_MILLISECONDS,