summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-08-15 23:32:38 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-08-15 23:33:01 +0200
commit998b087f70505decbfe55afd27fc4ade3d60ce52 (patch)
treec6d11d7d31207ea4dd35e7378df53e41dbb50990 /src
parentcabaa37a602ea787d3b3d1f6ec402de7918a4823 (diff)
tests: fix indentation
Diffstat (limited to 'src')
-rw-r--r--src/test/test-util.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/src/test/test-util.c b/src/test/test-util.c
index 315bc419c2..875aeab3d5 100644
--- a/src/test/test-util.c
+++ b/src/test/test-util.c
@@ -192,41 +192,40 @@ static void test_safe_atod(void) {
}
static void test_strappend(void) {
- _cleanup_free_ char *t1, *t2, *t3, *t4;
+ _cleanup_free_ char *t1, *t2, *t3, *t4;
- t1 = strappend(NULL, NULL);
- assert_se(streq(t1, ""));
+ t1 = strappend(NULL, NULL);
+ assert_se(streq(t1, ""));
- t2 = strappend(NULL, "suf");
- assert_se(streq(t2, "suf"));
+ t2 = strappend(NULL, "suf");
+ assert_se(streq(t2, "suf"));
- t3 = strappend("pre", NULL);
- assert_se(streq(t3, "pre"));
+ t3 = strappend("pre", NULL);
+ assert_se(streq(t3, "pre"));
- t4 = strappend("pre", "suf");
- assert_se(streq(t4, "presuf"));
+ t4 = strappend("pre", "suf");
+ assert_se(streq(t4, "presuf"));
}
static void test_strstrip(void) {
- char *r;
- char input[] = " hello, waldo. ";
-
- r = strstrip(input);
- assert_se(streq(r, "hello, waldo."));
+ char *r;
+ char input[] = " hello, waldo. ";
+ r = strstrip(input);
+ assert_se(streq(r, "hello, waldo."));
}
static void test_delete_chars(void) {
- char *r;
- char input[] = " hello, waldo. abc";
+ char *r;
+ char input[] = " hello, waldo. abc";
- r = delete_chars(input, WHITESPACE);
- assert_se(streq(r, "hello,waldo.abc"));
+ r = delete_chars(input, WHITESPACE);
+ assert_se(streq(r, "hello,waldo.abc"));
}
static void test_in_charset(void) {
- assert_se(in_charset("dddaaabbbcccc", "abcd"));
- assert_se(!in_charset("dddaaabbbcccc", "abc f"));
+ assert_se(in_charset("dddaaabbbcccc", "abcd"));
+ assert_se(!in_charset("dddaaabbbcccc", "abc f"));
}
static void test_hexchar(void) {