diff options
Diffstat (limited to 'test/test1.c')
-rw-r--r-- | test/test1.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/test/test1.c b/test/test1.c deleted file mode 100644 index 586be35..0000000 --- a/test/test1.c +++ /dev/null @@ -1,39 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -#include <string2.h> -#include <stdio.h> - -#include "test.h" - -void -test1(void) -{ - printf("executing test1... "); - 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"); -} - -void -test2(void) -{ - printf("executing test2... "); - 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"); -} - -void -test3() -{ - printf("executing %s... OK\n", __func__); - printf("%s\n", string2ver()); -} |