Changeset 1bed2e1


Ignore:
Timestamp:
2014-02-28T00:00:03Z (11 years ago)
Author:
dequis <dx@…>
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)
Message:

Fix check_nick tests (Ticket #1102)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/check_nick.c

    r6a0cb16 r1bed2e1  
    77#include "set.h"
    88#include "misc.h"
     9#include "bitlbee.h"
    910
    1011START_TEST(test_nick_strip)
     
    3132                char copy[60];
    3233                strcpy(copy, get[i]);
    33                 nick_strip(copy);
     34                nick_strip(NULL, copy);
    3435                fail_unless (strcmp(copy, expected[i]) == 0,
    3536                                         "(%d) nick_strip broken: %s -> %s (expected: %s)",
     
    4647
    4748        for (i = 0; nicks[i]; i++) {
    48                 fail_unless (nick_ok(nicks[i]) == 1,
     49                fail_unless (nick_ok(NULL, nicks[i]) == 1,
    4950                                         "nick_ok() failed: %s", nicks[i]);
    5051        }
     
    5960
    6061        for (i = 0; nicks[i]; i++) {
    61                 fail_unless (nick_ok(nicks[i]) == 0,
     62                fail_unless (nick_ok(NULL, nicks[i]) == 0,
    6263                                         "nick_ok() succeeded for invalid: %s", nicks[i]);
    6364        }
Note: See TracChangeset for help on using the changeset viewer.