summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-05-21 12:07:13 +0800
committerPeng Wu <alexepico@gmail.com>2012-05-21 12:07:13 +0800
commit931df7d5a0924cde0c5b249b5f82a8d5bf9039b5 (patch)
tree4e0eb8b3dd48255c010efaaa7f8292726b95551d /tests
parentad922c4b6f8a6f2062a980e7b15b4fa17428b182 (diff)
downloadlibpinyin-931df7d5a0924cde0c5b249b5f82a8d5bf9039b5.tar.gz
libpinyin-931df7d5a0924cde0c5b249b5f82a8d5bf9039b5.tar.xz
libpinyin-931df7d5a0924cde0c5b249b5f82a8d5bf9039b5.zip
rename init_phrase_index to load_phrase_index
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];