X-Git-Url: https://git.armaanb.net/?p=libacheam.git;a=blobdiff_plain;f=src%2Ftests.c;fp=src%2Ftests.c;h=c7dd2a2232ddb40a72bc3fef61089ca3b04da9fc;hp=0000000000000000000000000000000000000000;hb=45af2131d0dce416c9960f6dbfa309d8421026cd;hpb=319a897014101bcf7c9c0d17164cc676565d1193 diff --git a/src/tests.c b/src/tests.c new file mode 100644 index 0000000..c7dd2a2 --- /dev/null +++ b/src/tests.c @@ -0,0 +1,18 @@ +#include +#include + +#include +#include + +int +main(void) +{ + // tolowerw() + assert(strcmp(tolowerw("eXaMpLe StRiNg"), "example string") == 0); + + // toupperw() + assert(strcmp(toupperw("eXaMpLe StRiNg"), "EXAMPLE STRING") == 0); + + printf("All tests passed succesfully!\n"); + return 0; +}