~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more space efficient unicode tables
[disorder]
/
lib
/
test.c
diff --git
a/lib/test.c
b/lib/test.c
index
69ca609
..
d3e8282
100644
(file)
--- a/
lib/test.c
+++ b/
lib/test.c
@@
-467,7
+467,7
@@
static FILE *open_unicode_test(const char *path) {
return fp;
}
return fp;
}
-/** @brief Run breaking tests for utf32_
is_gcb
() etc */
+/** @brief Run breaking tests for utf32_
grapheme_boundary
() etc */
static void breaktest(const char *path,
int (*breakfn)(const uint32_t *, size_t, size_t)) {
FILE *fp = open_unicode_test(path);
static void breaktest(const char *path,
int (*breakfn)(const uint32_t *, size_t, size_t)) {
FILE *fp = open_unicode_test(path);
@@
-567,11
+567,11
@@
static void test_unicode(void) {
fprintf(stderr, \
"NormalizationTest.txt:%d: c%d != "#T"(c%d)\n", \
lineno, A, B); \
fprintf(stderr, \
"NormalizationTest.txt:%d: c%d != "#T"(c%d)\n", \
lineno, A, B); \
- fprintf(stderr, "
c%d: %s\n",
\
+ fprintf(stderr, "
c%d: %s\n",
\
A, format_utf32(c[A])); \
fprintf(stderr, "%4s(c%d): %s\n", \
#T, B, format_utf32(T##_c[B])); \
A, format_utf32(c[A])); \
fprintf(stderr, "%4s(c%d): %s\n", \
#T, B, format_utf32(T##_c[B])); \
- count_error();
\
+ count_error(); \
} \
} while(0)
unt_check(NFD, 3, 1);
} \
} while(0)
unt_check(NFD, 3, 1);
@@
-591,7
+591,7
@@
static void test_unicode(void) {
xfree(l);
}
fclose(fp);
xfree(l);
}
fclose(fp);
- breaktest("auxiliary/GraphemeBreakTest.txt", utf32_is_g
cb
);
+ breaktest("auxiliary/GraphemeBreakTest.txt", utf32_is_g
rapheme_boundary
);
breaktest("auxiliary/WordBreakTest.txt", utf32_is_word_boundary);
}
breaktest("auxiliary/WordBreakTest.txt", utf32_is_word_boundary);
}