summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/test_phrase_lookup.cpp4
-rw-r--r--tests/lookup/test_pinyin_lookup.cpp4
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();