/* See LICENSE file for copyright and license details. */ #include #include #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()); }