Changeset 2e815e5 for tests/check_nick.c


Ignore:
Timestamp:
2014-02-28T23:14:11Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
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.
Message:

Merging a bunch of patches from Trac, collected by dx.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/check_nick.c

    r6ae1056 r2e815e5  
    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.