From 4dba29f6a5f1450fec25a506e21e2ccf53be3568 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 4 May 2024 00:19:24 +0200 Subject: Minor improvements --- test/gbrk-test.c | 18 ++++++++---------- 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 #include -#include "alloc.h" -#include "dynarr.h" -#include "errors.h" -#include "macros.h" -#include "mbstring.h" -#include "rune.h" -#include "unicode/string.h" +#include +#include +#include +#include +#include +#include +#include #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 #include -#include "alloc.h" -#include "dynarr.h" -#include "errors.h" -#include "macros.h" -#include "mbstring.h" -#include "rune.h" -#include "unicode/string.h" +#include +#include +#include +#include +#include +#include +#include #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); -- cgit v1.2.3