From 8e1e998b18c3e4163b364893c10d3f0dfe2746d5 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 23 Mar 2016 16:37:48 +0800 Subject: update test cases --- tests/lookup/test_phrase_lookup.cpp | 4 +--- tests/lookup/test_pinyin_lookup.cpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'tests') 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(); -- cgit