diff options
author | Peng Wu <alexepico@gmail.com> | 2016-03-30 14:43:41 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-03-30 14:43:41 +0800 |
commit | 9f79258f900dd9899549fe6e743e090f5ebb8186 (patch) | |
tree | 21a46d7cd31e5f5886853928cea1b688a799491c /tests/lookup | |
parent | a3eba16fd79e6954de9cbef245307d3d7631aa40 (diff) | |
download | libpinyin-9f79258f900dd9899549fe6e743e090f5ebb8186.tar.gz libpinyin-9f79258f900dd9899549fe6e743e090f5ebb8186.tar.xz libpinyin-9f79258f900dd9899549fe6e743e090f5ebb8186.zip |
update tests
Diffstat (limited to 'tests/lookup')
-rw-r--r-- | tests/lookup/test_phrase_lookup.cpp | 2 | ||||
-rw-r--r-- | tests/lookup/test_pinyin_lookup.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/lookup/test_phrase_lookup.cpp b/tests/lookup/test_phrase_lookup.cpp index 3fac442..04ebc76 100644 --- a/tests/lookup/test_phrase_lookup.cpp +++ b/tests/lookup/test_phrase_lookup.cpp @@ -62,7 +62,7 @@ int main(int argc, char * argv[]){ } /* init phrase table */ - FacadePhraseTable2 phrase_table; + FacadePhraseTable3 phrase_table; phrase_table.load("../../data/phrase_index.bin", NULL); const pinyin_table_info_t * phrase_files = diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp index a16ed9c..1795981 100644 --- a/tests/lookup/test_pinyin_lookup.cpp +++ b/tests/lookup/test_pinyin_lookup.cpp @@ -38,9 +38,9 @@ int main( int argc, char * argv[]){ pinyin_option_t options = USE_TONE | USE_RESPLIT_TABLE | PINYIN_CORRECT_ALL | PINYIN_AMB_ALL; - FacadeChewingTable largetable; + FacadeChewingTable2 largetable; - largetable.load(options, "../../data/pinyin_index.bin", NULL); + largetable.load("../../data/pinyin_index.bin", NULL); const pinyin_table_info_t * phrase_files = system_table_info.get_default_tables(); |