From 82c48f3071bf6bed40b7914fc87732c491b9d548 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 1 Jan 2011 08:25:31 -0800 Subject: 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. --- modules/unigbrk/uc-gbrk-prop-tests | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/unigbrk/uc-gbrk-prop-tests (limited to 'modules/unigbrk') 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) -- cgit v1.2.1