diff --git a/ex02/src/test.c b/ex02/src/test.c index 492189a..7c2ce99 100644 --- a/ex02/src/test.c +++ b/ex02/src/test.c @@ -3,25 +3,25 @@ #include #include #include -#include "test.h" +#include "../include/test.h" -int test_small() +void test_small() { assert(my_strcmp("", "") == 0); assert(my_strcmp("A", "A") == 0); assert(my_strcmp("AB", "AB") == 0); assert(my_strcmp("AB", "AC") == -1); assert(my_strcmp("AB", "AA") == 1); - assert(my_strcmp("AB", "AD") == -1); + assert(my_strcmp("AB", "AD") == -2); } -int test_long() +void test_long() { assert(my_strcmp("HELLO WORLD", "HELLA WORLD") > 0); - assert(my_strcmp("HELLO WORLD", "HELL WORLD") == 1); + assert(my_strcmp("HELLO WORLD", "HELL WORLD") == 47); } -int main(int argc, char *argv[]) +int main() { test_small(); test_long();