diff options
Diffstat (limited to '')
-rw-r--r-- | libsimple.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libsimple.c b/libsimple.c index aecd0a3..4aa2368 100644 --- a/libsimple.c +++ b/libsimple.c @@ -1207,6 +1207,18 @@ main(void) assert(libsimple_memeq("abcxyz", "abcx23", 4)); assert(libsimple_memeq("1", "2", 0)); assert(!libsimple_memeq("1", "2", 1)); + assert(!libsimple_memeq("abc", "ABC", 3)); + assert(!libsimple_memeq("ABC", "abc", 3)); + assert(libsimple_memeq("ABC", "ABC", 3)); + + assert(libsimple_memcaseeq("abcxyz", "abc123", 3)); + assert(!libsimple_memcaseeq("abcxyz", "abc123", 4)); + assert(libsimple_memcaseeq("abcxyz", "abcx23", 4)); + assert(libsimple_memcaseeq("1", "2", 0)); + assert(!libsimple_memcaseeq("1", "2", 1)); + assert(libsimple_memcaseeq("abc", "ABC", 3)); + assert(libsimple_memcaseeq("ABC", "abc", 3)); + assert(libsimple_memcaseeq("ABC", "ABC", 3)); stpcpy(buf, "abc123"); assert(!strcmpnul(libsimple_mempset(buf, '.', 3), "123")); |