diff options
| author | Indent <please@skip.me> | 2015-02-19 02:47:20 -0300 | 
|---|---|---|
| committer | dequis <dx@dxzone.com.ar> | 2015-02-20 19:50:54 -0300 | 
| commit | 5ebff60479fc7a9f7f50ac03b124c91d4e6ebe11 (patch) | |
| tree | 9fc0d50cb1f4bc9768d9f00de94eafd876bb55b0 /tests/check_nick.c | |
| parent | af359b4316f9d392c6b752495a1b2ed631576ed8 (diff) | |
Reindent everything to K&R style with tabs
Used uncrustify, with the configuration file in ./doc/uncrustify.cfg
Commit author set to "Indent <please@skip.me>" so that it's easier to
skip while doing git blame.
Diffstat (limited to 'tests/check_nick.c')
| -rw-r--r-- | tests/check_nick.c | 64 | 
1 files changed, 32 insertions, 32 deletions
diff --git a/tests/check_nick.c b/tests/check_nick.c index 3c11810e..ca5e5111 100644 --- a/tests/check_nick.c +++ b/tests/check_nick.c @@ -8,33 +8,32 @@  #include "misc.h"  #include "bitlbee.h" -START_TEST(test_nick_strip) -{ +START_TEST(test_nick_strip){  	int i; -	const char *get[] = { "test:", "test", "test\n",  -		"thisisaveryveryveryverylongnick",  -		"thisisave:ryveryveryverylongnick", -		"t::::est", -		"test123", -		"123test", -		"123", -		NULL }; -	const char *expected[] = { "test", "test", "test",  -		"thisisaveryveryveryveryl",  -		"thisisaveryveryveryveryl",  -		"test", -		"test123", -		"_123test", -		"_123", -		NULL }; +	const char *get[] = { "test:", "test", "test\n", +		              "thisisaveryveryveryverylongnick", +		              "thisisave:ryveryveryverylongnick", +		              "t::::est", +		              "test123", +		              "123test", +		              "123", +		              NULL }; +	const char *expected[] = { "test", "test", "test", +		                   "thisisaveryveryveryveryl", +		                   "thisisaveryveryveryveryl", +		                   "test", +		                   "test123", +		                   "_123test", +		                   "_123", +		                   NULL };  	for (i = 0; get[i]; i++) {  		char copy[60];  		strcpy(copy, get[i]);  		nick_strip(NULL, copy); -		fail_unless (strcmp(copy, expected[i]) == 0,  -					 "(%d) nick_strip broken: %s -> %s (expected: %s)",  -					 i, get[i], copy, expected[i]); +		fail_unless(strcmp(copy, expected[i]) == 0, +		            "(%d) nick_strip broken: %s -> %s (expected: %s)", +		            i, get[i], copy, expected[i]);  	}  }  END_TEST @@ -42,12 +41,12 @@ END_TEST  START_TEST(test_nick_ok_ok)  {  	const char *nicks[] = { "foo", "bar123", "bla[", "blie]", "BreEZaH", -	                        "\\od^~", "_123", "_123test", NULL }; +		                "\\od^~", "_123", "_123test", NULL };  	int i;  	for (i = 0; nicks[i]; i++) { -		fail_unless (nick_ok(NULL, nicks[i]) == 1, -					 "nick_ok() failed: %s", nicks[i]); +		fail_unless(nick_ok(NULL, nicks[i]) == 1, +		            "nick_ok() failed: %s", nicks[i]);  	}  }  END_TEST @@ -55,23 +54,24 @@ END_TEST  START_TEST(test_nick_ok_notok)  {  	const char *nicks[] = { "thisisaveryveryveryveryveryveryverylongnick", -		                    "\nillegalchar", "", "nick%", "123test", NULL }; +		                "\nillegalchar", "", "nick%", "123test", NULL };  	int i;  	for (i = 0; nicks[i]; i++) { -		fail_unless (nick_ok(NULL, nicks[i]) == 0, -					 "nick_ok() succeeded for invalid: %s", nicks[i]); +		fail_unless(nick_ok(NULL, nicks[i]) == 0, +		            "nick_ok() succeeded for invalid: %s", nicks[i]);  	}  }  END_TEST -Suite *nick_suite (void) +Suite *nick_suite(void)  {  	Suite *s = suite_create("Nick");  	TCase *tc_core = tcase_create("Core"); -	suite_add_tcase (s, tc_core); -	tcase_add_test (tc_core, test_nick_ok_ok); -	tcase_add_test (tc_core, test_nick_ok_notok); -	tcase_add_test (tc_core, test_nick_strip); + +	suite_add_tcase(s, tc_core); +	tcase_add_test(tc_core, test_nick_ok_ok); +	tcase_add_test(tc_core, test_nick_ok_notok); +	tcase_add_test(tc_core, test_nick_strip);  	return s;  }  | 
