chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unicode.c iterators can now have their notion of Word_Break tailored.
[disorder]
/
lib
/
test.c
diff --git
a/lib/test.c
b/lib/test.c
index 0790efccc01c35865e6388298ccf6b7eccb28dc2..f4043b92f587078ceef690ecf0b1540d2898a845 100644
(file)
--- a/
lib/test.c
+++ b/
lib/test.c
@@
-38,7
+38,6
@@
#include "charset.h"
#include "mime.h"
#include "hex.h"
#include "charset.h"
#include "mime.h"
#include "hex.h"
-#include "words.h"
#include "heap.h"
#include "unicode.h"
#include "inputline.h"
#include "heap.h"
#include "unicode.h"
#include "inputline.h"
@@
-411,7
+410,7
@@
static void test_casefold(void) {
++tests;
}
}
++tests;
}
}
- check_string(
casefold(""
), "");
+ check_string(
utf8_casefold_canon("", 0, 0
), "");
}
struct {
}
struct {
@@
-450,7
+449,7
@@
static void test_words(void) {
fprintf(stderr, "test_words\n");
for(t = 0; t < NWTEST; ++t) {
fprintf(stderr, "test_words\n");
for(t = 0; t < NWTEST; ++t) {
- char **got = utf8_word_split(wtest[t].in, strlen(wtest[t].in), &ngot);
+ char **got = utf8_word_split(wtest[t].in, strlen(wtest[t].in), &ngot
, 0
);
for(nexpect = 0; wtest[t].expect[nexpect]; ++nexpect)
;
for(nexpect = 0; wtest[t].expect[nexpect]; ++nexpect)
;