-
-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
char const * str = "abcdef";
char const * empty = "";
assert(strspn(str, empty) == 0);
assert(strpbrk(str, empty) == NULL);
assert(strcspn(str, empty) == 6);
assert(strcspn(str, "cba") == 0);
assert(strcspn(str, "fed") == 3);
assert(strcspn(str, "eebbeb") == 1);
assert(strcspn(str, "ffaafa") == 0);
assert(strcspn(empty, str) == 0);
assert(strcspn(empty, empty) == 0);
The following cases fail for Ti's implementation of strspn
, strcspn
, and strpbrk
. These routines will need to be replaced.