diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/gbrk-test.c | 18 | ||||
-rw-r--r-- | test/wbrk-test.c | 18 |
2 files changed, 16 insertions, 20 deletions
diff --git a/test/gbrk-test.c b/test/gbrk-test.c index 6c1344c..cf91121 100644 --- a/test/gbrk-test.c +++ b/test/gbrk-test.c @@ -2,13 +2,13 @@ #include <stdio.h> #include <stdlib.h> -#include "alloc.h" -#include "dynarr.h" -#include "errors.h" -#include "macros.h" -#include "mbstring.h" -#include "rune.h" -#include "unicode/string.h" +#include <alloc.h> +#include <dynarr.h> +#include <errors.h> +#include <macros.h> +#include <mbstring.h> +#include <rune.h> +#include <unicode/string.h> #define TESTFILE "gnext.in" @@ -35,10 +35,8 @@ main(int, char **argv) if (line[nr - 1] == '\n') line[--nr] = '\0'; - if (!test(line, (size_t)nr, id)) { + if (!test(line, (size_t)nr, id)) rv = EXIT_FAILURE; - break; - } } if (ferror(fp)) err("getline: %s:", TESTFILE); diff --git a/test/wbrk-test.c b/test/wbrk-test.c index a137f7d..8425b5b 100644 --- a/test/wbrk-test.c +++ b/test/wbrk-test.c @@ -2,13 +2,13 @@ #include <stdio.h> #include <stdlib.h> -#include "alloc.h" -#include "dynarr.h" -#include "errors.h" -#include "macros.h" -#include "mbstring.h" -#include "rune.h" -#include "unicode/string.h" +#include <alloc.h> +#include <dynarr.h> +#include <errors.h> +#include <macros.h> +#include <mbstring.h> +#include <rune.h> +#include <unicode/string.h> #define TESTFILE "wnext.in" @@ -35,10 +35,8 @@ main(int, char **argv) if (line[nr - 1] == '\n') line[--nr] = '\0'; - if (!test(line, (size_t)nr, id)) { + if (!test(line, (size_t)nr, id)) rv = EXIT_FAILURE; - break; - } } if (ferror(fp)) err("getline: %s:", TESTFILE); |