Changeset 2e815e5 for tests/check_nick.c
- Timestamp:
- 2014-02-28T23:14:11Z (11 years ago)
- Branches:
- master
- Children:
- 35987a1
- Parents:
- 6ae1056 (diff), cb90dc9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/check_nick.c
r6ae1056 r2e815e5 7 7 #include "set.h" 8 8 #include "misc.h" 9 #include "bitlbee.h" 9 10 10 11 START_TEST(test_nick_strip) … … 31 32 char copy[60]; 32 33 strcpy(copy, get[i]); 33 nick_strip( copy);34 nick_strip(NULL, copy); 34 35 fail_unless (strcmp(copy, expected[i]) == 0, 35 36 "(%d) nick_strip broken: %s -> %s (expected: %s)", … … 46 47 47 48 for (i = 0; nicks[i]; i++) { 48 fail_unless (nick_ok( nicks[i]) == 1,49 fail_unless (nick_ok(NULL, nicks[i]) == 1, 49 50 "nick_ok() failed: %s", nicks[i]); 50 51 } … … 59 60 60 61 for (i = 0; nicks[i]; i++) { 61 fail_unless (nick_ok( nicks[i]) == 0,62 fail_unless (nick_ok(NULL, nicks[i]) == 0, 62 63 "nick_ok() succeeded for invalid: %s", nicks[i]); 63 64 }
Note: See TracChangeset
for help on using the changeset viewer.