summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/test_phrase_lookup.cpp2
-rw-r--r--tests/lookup/test_pinyin_lookup.cpp2
-rw-r--r--tests/tests_helper.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/lookup/test_phrase_lookup.cpp b/tests/lookup/test_phrase_lookup.cpp
index 42a715f..3a5470f 100644
--- a/tests/lookup/test_phrase_lookup.cpp
+++ b/tests/lookup/test_phrase_lookup.cpp
@@ -78,7 +78,7 @@ int main(int argc, char * argv[]){
/* init phrase index */
FacadePhraseIndex phrase_index;
- if (!init_phrase_index(&phrase_index))
+ if (!load_phrase_index(&phrase_index))
exit(ENOENT);
/* init bi-gram */
diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp
index 6aa34a9..25f7a2b 100644
--- a/tests/lookup/test_pinyin_lookup.cpp
+++ b/tests/lookup/test_pinyin_lookup.cpp
@@ -38,7 +38,7 @@ int main( int argc, char * argv[]){
largetable.load(options, chunk, NULL);
FacadePhraseIndex phrase_index;
- if (!init_phrase_index(&phrase_index))
+ if (!load_phrase_index(&phrase_index))
exit(ENOENT);
Bigram system_bigram;
diff --git a/tests/tests_helper.h b/tests/tests_helper.h
index b6cda61..daaa68a 100644
--- a/tests/tests_helper.h
+++ b/tests/tests_helper.h
@@ -22,7 +22,7 @@
#ifndef TESTS_HELPER_H
#define TESTS_HELPER_H
-static bool init_phrase_index(FacadePhraseIndex * phrase_index){
+static bool load_phrase_index(FacadePhraseIndex * phrase_index){
MemoryChunk * chunk = NULL;
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
const char * bin_file = pinyin_phrase_files[i];