X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest_strrep.c;h=e3ef20d36a40f44dbb34f5f698f513c4d1e96383;hb=HEAD;hp=687c1fcf0df3bde978a25010ece501a520ca2ce5;hpb=861c6bbbac2cceeba01e5c6aa1628ab177f84988;p=ppastats.git diff --git a/tests/test_strrep.c b/tests/test_strrep.c index 687c1fc..e3ef20d 100644 --- a/tests/test_strrep.c +++ b/tests/test_strrep.c @@ -21,7 +21,7 @@ #include #include -#include "../src/str.h" +#include static int test_strrep(const char *str, const char *old, @@ -49,7 +49,7 @@ static int test_strrep(const char *str, static int tests_strrep() { int failures; - + failures = 0; failures += test_strrep(NULL, NULL, NULL, NULL); @@ -65,7 +65,7 @@ static int tests_strrep() failures += test_strrep("DastringE", "astring", "", "DE"); failures += test_strrep("Dastring", "astring", "", "D"); failures += test_strrep("astringE", "astring", "", "E"); - + failures += test_strrep("astring", "old", "new", "astring"); failures += test_strrep("aoldstring", "old", "new", "anewstring"); failures += test_strrep("astring", "astring", "thenewstring", @@ -86,7 +86,7 @@ int main(int argc, char **argv) failures += tests_strrep(); - if (failures) + if (failures) exit(EXIT_FAILURE); else exit(EXIT_SUCCESS);