- Timestamp:
- 2014-02-28T00:00:03Z (11 years ago)
- Branches:
- master
- Children:
- ba3506e
- Parents:
- 6a0cb16
- git-author:
- radhermit <radhermit@…> (28-02-14 00:00:03)
- git-committer:
- dequis <dx@…> (28-02-14 00:00:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/check_nick.c
r6a0cb16 r1bed2e1 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.