aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-05-04 00:19:24 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-05-04 00:19:24 +0200
commit4dba29f6a5f1450fec25a506e21e2ccf53be3568 (patch)
tree69cd62c135184e922da2eefe3f05eca563efc72d /test
parent0453dab3f45494ab949748ccc720605d6a6e831a (diff)
Minor improvements
Diffstat (limited to 'test')
-rw-r--r--test/gbrk-test.c18
-rw-r--r--test/wbrk-test.c18
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);