]> git.armaanb.net Git - libacheam.git/blob - src/tests.c
Add tests, restructure repo, and add static target
[libacheam.git] / src / tests.c
1 #include <acheam.h>
2 #include <assert.h>
3
4 #include <string.h>
5 #include <stdio.h>
6
7 int
8 main(void)
9 {
10         // tolowerw()
11         assert(strcmp(tolowerw("eXaMpLe StRiNg"), "example string") == 0);
12
13         // toupperw()
14         assert(strcmp(toupperw("eXaMpLe StRiNg"), "EXAMPLE STRING") == 0);
15
16         printf("All tests passed succesfully!\n");
17         return 0;
18 }