diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-10-11 23:54:37 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-10-11 23:54:37 +0000 |
commit | a99617fe8fdb56b3e877558bfd6572ce65ad39de (patch) | |
tree | 26c3182125188cb7681885830ea7e32e179c7565 /test | |
parent | d1c3ee2a075fc4e855e352e5a5cf10371f2e77aa (diff) |
Finish reorganizing things. At least I think I've finished.
Diffstat (limited to 'test')
-rw-r--r-- | test/string/string.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/string/string.c b/test/string/string.c index c59262717..2492755d0 100644 --- a/test/string/string.c +++ b/test/string/string.c @@ -580,14 +580,21 @@ test_strsep (void) equal(one+2, "b", 49); equal(one+4, "c", 50); +printf( "A\n"); { char text[] = "This,is,a,test"; char *list = strdup (text); +printf( "B\n"); equal (strsep (&list, ","), "This", 51); +printf( "C\n"); equal (strsep (&list, ","), "is", 52); +printf( "D\n"); equal (strsep (&list, ","), "a", 53); +printf( "E\n"); equal (strsep (&list, ","), "test", 54); +printf( "F\n"); check (strsep (&list, ",") == NULL, 55); +printf( "G\n"); } cp = strcpy(one, "a,b, c,, ,d,"); |