summaryrefslogtreecommitdiff
path: root/modules/unigbrk
diff options
context:
space:
mode:
authorBen Pfaff <blp@cs.stanford.edu>2011-01-01 08:25:31 -0800
committerBen Pfaff <blp@cs.stanford.edu>2011-01-01 08:25:31 -0800
commit82c48f3071bf6bed40b7914fc87732c491b9d548 (patch)
tree1c8994385b1f0145d198adea0754960da45c12c8 /modules/unigbrk
parent579e321712b6b9cb8d96978fa10487c8d7e5da4a (diff)
downloadgnulib-82c48f3071bf6bed40b7914fc87732c491b9d548.tar.gz
unigbrk: Fix uc_graphemeclusterbreak_property(), add comprehensive test.
gbrkprop: Fix implementation of uc_graphemeclusterbreak_property. * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c. I had modified how this file was generated before I initially submitted the module, but failed to regenerate it. This meant that several of the level2 entries were wrong. * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property): Remove the division-by-2 that is folded into the table now that gbrkprop.h has been regenerated properly. Now -1 entries are handled correctly. New module 'unigbrk/uc-gbrk-prop-tests'. * modules/unigbrk/uc-gbrk-prop-tests: New file. * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h. * tests/unigbrk/test-uc-gbrk-prop.c: New file. * tests/unigbrk/test-uc-gbrk-prop.h: New file.
Diffstat (limited to 'modules/unigbrk')
-rw-r--r--modules/unigbrk/uc-gbrk-prop-tests14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/unigbrk/uc-gbrk-prop-tests b/modules/unigbrk/uc-gbrk-prop-tests
new file mode 100644
index 0000000000..0180646e02
--- /dev/null
+++ b/modules/unigbrk/uc-gbrk-prop-tests
@@ -0,0 +1,14 @@
+Files:
+tests/unigbrk/test-uc-gbrk-prop.c
+tests/unigbrk/test-uc-gbrk-prop.h
+tests/macros.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-uc-gbrk-prop
+check_PROGRAMS += test-uc-gbrk-prop
+test_uc_gbrk_prop_SOURCES = unigbrk/test-uc-gbrk-prop.c
+test_uc_gbrk_prop_LDADD = $(LDADD) $(LIBUNISTRING)