diff options
author | Peng Wu <alexepico@gmail.com> | 2016-03-23 16:37:48 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-03-23 16:37:48 +0800 |
commit | 8e1e998b18c3e4163b364893c10d3f0dfe2746d5 (patch) | |
tree | 78aae9cefb1e6c0f1e617c91308d4179a26f3516 | |
parent | f5ed30dce5af84320a9367400194a267b26ac4a0 (diff) | |
download | libpinyin-8e1e998b18c3e4163b364893c10d3f0dfe2746d5.tar.gz libpinyin-8e1e998b18c3e4163b364893c10d3f0dfe2746d5.tar.xz libpinyin-8e1e998b18c3e4163b364893c10d3f0dfe2746d5.zip |
update test cases
-rw-r--r-- | tests/lookup/test_phrase_lookup.cpp | 4 | ||||
-rw-r--r-- | tests/lookup/test_pinyin_lookup.cpp | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/lookup/test_phrase_lookup.cpp b/tests/lookup/test_phrase_lookup.cpp index 0538ddf..3fac442 100644 --- a/tests/lookup/test_phrase_lookup.cpp +++ b/tests/lookup/test_phrase_lookup.cpp @@ -63,9 +63,7 @@ int main(int argc, char * argv[]){ /* init phrase table */ FacadePhraseTable2 phrase_table; - MemoryChunk * chunk = new MemoryChunk; - chunk->load("../../data/phrase_index.bin"); - phrase_table.load(chunk, NULL); + phrase_table.load("../../data/phrase_index.bin", NULL); const pinyin_table_info_t * phrase_files = system_table_info.get_default_tables(); diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp index 525cd76..a16ed9c 100644 --- a/tests/lookup/test_pinyin_lookup.cpp +++ b/tests/lookup/test_pinyin_lookup.cpp @@ -40,9 +40,7 @@ int main( int argc, char * argv[]){ USE_TONE | USE_RESPLIT_TABLE | PINYIN_CORRECT_ALL | PINYIN_AMB_ALL; FacadeChewingTable largetable; - MemoryChunk * chunk = new MemoryChunk; - chunk->load("../../data/pinyin_index.bin"); - largetable.load(options, chunk, NULL); + largetable.load(options, "../../data/pinyin_index.bin", NULL); const pinyin_table_info_t * phrase_files = system_table_info.get_default_tables(); |