summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-09-12 15:41:30 +0800
committerPeng Wu <alexepico@gmail.com>2013-09-12 15:41:30 +0800
commit23a6259ae58fe293b7d1e69439d9c1590027e26e (patch)
tree1db3511e8321caa0e637a68ad7575a0e6979459b /tests
parent22d3719a8a2fc1343af1de100b6bb92a1b171b7e (diff)
downloadlibzhuyin-23a6259ae58fe293b7d1e69439d9c1590027e26e.tar.gz
libzhuyin-23a6259ae58fe293b7d1e69439d9c1590027e26e.tar.xz
libzhuyin-23a6259ae58fe293b7d1e69439d9c1590027e26e.zip
update pinyin_option_t
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/test_pinyin_lookup.cpp2
-rw-r--r--tests/storage/test_parser2.cpp2
-rw-r--r--tests/test_pinyin.cpp4
3 files changed, 3 insertions, 5 deletions
diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp
index c688e8c..d3f63a8 100644
--- a/tests/lookup/test_pinyin_lookup.cpp
+++ b/tests/lookup/test_pinyin_lookup.cpp
@@ -37,7 +37,7 @@ int main( int argc, char * argv[]){
}
pinyin_option_t options =
- USE_TONE | USE_RESPLIT_TABLE | PINYIN_AMB_ALL;
+ USE_TONE | PINYIN_AMB_ALL;
FacadeChewingTable largetable;
MemoryChunk * chunk = new MemoryChunk;
diff --git a/tests/storage/test_parser2.cpp b/tests/storage/test_parser2.cpp
index 6657d27..6e72b12 100644
--- a/tests/storage/test_parser2.cpp
+++ b/tests/storage/test_parser2.cpp
@@ -62,7 +62,7 @@ int main(int argc, char * argv[]) {
exit(EINVAL);
}
- pinyin_option_t options = USE_TONE | USE_RESPLIT_TABLE;
+ pinyin_option_t options = USE_TONE;
if (incomplete)
options |= PINYIN_INCOMPLETE | CHEWING_INCOMPLETE;
diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp
index ddec443..c2a5b6f 100644
--- a/tests/test_pinyin.cpp
+++ b/tests/test_pinyin.cpp
@@ -29,9 +29,7 @@ int main(int argc, char * argv[]){
pinyin_context_t * context =
pinyin_init("../data", "../data");
- pinyin_option_t options =
- USE_DIVIDED_TABLE | USE_RESPLIT_TABLE |
- DYNAMIC_ADJUST;
+ pinyin_option_t options = DYNAMIC_ADJUST;
pinyin_set_options(context, options);
pinyin_instance_t * instance = pinyin_alloc_instance(context);