diff options
author | 2023-02-23 16:25:05 +0100 | |
---|---|---|
committer | 2023-02-23 16:25:05 +0100 | |
commit | f6ce87c6d8e7f4c5ef00756f35da91d63bb6a540 (patch) | |
tree | a4cba7dd901b37e484c06dee1c028ea1ccfbf00d /test | |
parent | 9a9029f57afe383904d93e593e3b4163a0abb37a (diff) | |
download | string2-f6ce87c6d8e7f4c5ef00756f35da91d63bb6a540.tar.gz string2-f6ce87c6d8e7f4c5ef00756f35da91d63bb6a540.zip |
Change the name of all functions
strstarts -> strlft
strends -> strrgt
strlibver -> string2ver
Diffstat (limited to 'test')
-rw-r--r-- | test/test1.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/test1.c b/test/test1.c index 3f52c93..586be35 100644 --- a/test/test1.c +++ b/test/test1.c @@ -9,11 +9,11 @@ void test1(void) { printf("executing test1... "); - asserti(0, strends("alexander", "xander")); - asserti(1, strends("alexander", "dander")); - asserti(1, strends("alexander", "alex")); - asserti(0, strends("alexander", "alexander")); - asserti(1, strends("dwm", "dwmdwm")); + asserti(0, strrgt("alexander", "xander")); + asserti(1, strrgt("alexander", "dander")); + asserti(1, strrgt("alexander", "alex")); + asserti(0, strrgt("alexander", "alexander")); + asserti(1, strrgt("dwm", "dwmdwm")); printf("OK\n"); } @@ -22,11 +22,11 @@ void test2(void) { printf("executing test2... "); - asserti(0, strstarts("alexander", "alex")); - asserti(1, strstarts("alexander", "dalex")); - asserti(1, strstarts("alexander", "xander")); - asserti(0, strstarts("alexander", "alexander")); - asserti(1, strstarts("dwm", "dwmdwm")); + asserti(0, strlft("alexander", "alex")); + asserti(1, strlft("alexander", "dalex")); + asserti(1, strlft("alexander", "xander")); + asserti(0, strlft("alexander", "alexander")); + asserti(1, strlft("dwm", "dwmdwm")); printf("OK\n"); } @@ -35,5 +35,5 @@ void test3() { printf("executing %s... OK\n", __func__); - printf("%s\n", strlibver()); + printf("%s\n", string2ver()); } |