aboutsummaryrefslogtreecommitdiffstats
path: root/stptolower.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-06-12 20:13:23 +0200
committerMattias Andrée <maandree@kth.se>2022-06-12 20:13:23 +0200
commit3d6482b0949159c33d6ac2972a69868bdda766f2 (patch)
tree722cf9ab069d75af63664eeae0c35c63aa73c51c /stptolower.c
parentFix warnings (diff)
downloadlibsimple-3d6482b0949159c33d6ac2972a69868bdda766f2.tar.gz
libsimple-3d6482b0949159c33d6ac2972a69868bdda766f2.tar.bz2
libsimple-3d6482b0949159c33d6ac2972a69868bdda766f2.tar.xz
Move some test code to newline created .c files
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'stptolower.c')
-rw-r--r--stptolower.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/stptolower.c b/stptolower.c
index 7c21372..db63bf0 100644
--- a/stptolower.c
+++ b/stptolower.c
@@ -45,15 +45,6 @@ main(void)
stpcpy(buf, "ABCDEabcde12345");
assert(!strcmpnul(libsimple_stptolower(&buf[0], &buf[0]), ""));
assert(!strcmp(buf, "abcdeabcde12345"));
- stpcpy(buf, "ABCDEabcde12345");
- assert(!strcmpnul(libsimple_strtolower(&buf[3], &buf[0]), "abcdeabcde12345"));
- assert(!strcmp(buf, "ABCabcdeabcde12345"));
- stpcpy(buf, "ABCDEabcde12345");
- assert(!strcmpnul(libsimple_strtolower(&buf[0], &buf[3]), "deabcde12345"));
- assert(!strcmp(buf, "deabcde12345"));
- stpcpy(buf, "ABCDEabcde12345");
- assert(!strcmpnul(libsimple_strtolower(&buf[0], &buf[0]), "abcdeabcde12345"));
- assert(!strcmp(buf, "abcdeabcde12345"));
return 0;
}