aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_strings.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-04 14:00:32 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-04 14:00:32 +0000
commit83b19539f4d322b43683f5838b72e9ec2c8e6073 (patch)
treed0ab9329fcbefe360d9d14e2ace21a6b3396dfe9 /src/util/test_strings.c
parent28a2eb43281a1f08a67954f07beb9af3a9bc9a35 (diff)
downloadgnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.tar.gz
gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.zip
curly wars / auto-indentation
Diffstat (limited to 'src/util/test_strings.c')
-rw-r--r--src/util/test_strings.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/util/test_strings.c b/src/util/test_strings.c
index bb0e6088f..c6d604144 100644
--- a/src/util/test_strings.c
+++ b/src/util/test_strings.c
@@ -50,18 +50,18 @@ check ()
50 WANT (buf, b); 50 WANT (buf, b);
51 sprintf (buf, "4 %s", _( /* time unit */ "ms")); 51 sprintf (buf, "4 %s", _( /* time unit */ "ms"));
52 b = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply 52 b = 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 = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply 57 b = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply
58 (GNUNET_TIME_UNIT_MILLISECONDS, 58 (GNUNET_TIME_UNIT_MILLISECONDS,
59 7 * 1000)); 59 7 * 1000));
60 WANT (buf, b); 60 WANT (buf, b);
61 sprintf (buf, "7 %s", _( /* time unit */ "h")); 61 sprintf (buf, "7 %s", _( /* time unit */ "h"));
62 b = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply 62 b = GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_relative_multiply
63 (GNUNET_TIME_UNIT_MILLISECONDS, 63 (GNUNET_TIME_UNIT_MILLISECONDS,
64 7 * 60 * 60 * 1000)); 64 7 * 60 * 60 * 1000));
65 WANT (buf, b); 65 WANT (buf, b);
66#ifndef MINGW 66#ifndef MINGW
67 hdir = getenv ("HOME"); 67 hdir = getenv ("HOME");
@@ -88,12 +88,12 @@ check ()
88 * where the details of the day and hour depend on the timezone; 88 * where the details of the day and hour depend on the timezone;
89 * however, the "0:05 19" should always be there; hence: */ 89 * however, the "0:05 19" should always be there; hence: */
90 if (NULL == strstr (r, "0:05 19")) 90 if (NULL == strstr (r, "0:05 19"))
91 { 91 {
92 fprintf (stderr, "Got %s\n", r); 92 fprintf (stderr, "Got %s\n", r);
93 GNUNET_break (0); 93 GNUNET_break (0);
94 GNUNET_free (r); 94 GNUNET_free (r);
95 return 1; 95 return 1;
96 } 96 }
97 GNUNET_free (r); 97 GNUNET_free (r);
98 b = GNUNET_STRINGS_to_utf8 ("TEST", 4, "ASCII"); 98 b = GNUNET_STRINGS_to_utf8 ("TEST", 4, "ASCII");
99 WANT ("TEST", b); 99 WANT ("TEST", b);