summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-03-30 14:43:41 +0800
committerPeng Wu <alexepico@gmail.com>2016-03-30 14:43:41 +0800
commit9f79258f900dd9899549fe6e743e090f5ebb8186 (patch)
tree21a46d7cd31e5f5886853928cea1b688a799491c /tests
parenta3eba16fd79e6954de9cbef245307d3d7631aa40 (diff)
downloadlibpinyin-9f79258f900dd9899549fe6e743e090f5ebb8186.zip
libpinyin-9f79258f900dd9899549fe6e743e090f5ebb8186.tar.gz
libpinyin-9f79258f900dd9899549fe6e743e090f5ebb8186.tar.xz
update tests
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/test_phrase_lookup.cpp2
-rw-r--r--tests/lookup/test_pinyin_lookup.cpp4
-rw-r--r--tests/storage/test_chewing_table.cpp2
-rw-r--r--tests/storage/test_phrase_table.cpp2
-rw-r--r--tests/tests_helper.h4
5 files changed, 7 insertions, 7 deletions
diff --git a/tests/lookup/test_phrase_lookup.cpp b/tests/lookup/test_phrase_lookup.cpp
index 3fac442..04ebc76 100644
--- a/tests/lookup/test_phrase_lookup.cpp
+++ b/tests/lookup/test_phrase_lookup.cpp
@@ -62,7 +62,7 @@ int main(int argc, char * argv[]){
}
/* init phrase table */
- FacadePhraseTable2 phrase_table;
+ FacadePhraseTable3 phrase_table;
phrase_table.load("../../data/phrase_index.bin", NULL);
const pinyin_table_info_t * phrase_files =
diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp
index a16ed9c..1795981 100644
--- a/tests/lookup/test_pinyin_lookup.cpp
+++ b/tests/lookup/test_pinyin_lookup.cpp
@@ -38,9 +38,9 @@ int main( int argc, char * argv[]){
pinyin_option_t options =
USE_TONE | USE_RESPLIT_TABLE | PINYIN_CORRECT_ALL | PINYIN_AMB_ALL;
- FacadeChewingTable largetable;
+ FacadeChewingTable2 largetable;
- largetable.load(options, "../../data/pinyin_index.bin", NULL);
+ largetable.load("../../data/pinyin_index.bin", NULL);
const pinyin_table_info_t * phrase_files =
system_table_info.get_default_tables();
diff --git a/tests/storage/test_chewing_table.cpp b/tests/storage/test_chewing_table.cpp
index e6ecdb0..c0a1ae7 100644
--- a/tests/storage/test_chewing_table.cpp
+++ b/tests/storage/test_chewing_table.cpp
@@ -36,7 +36,7 @@ int main(int argc, char * argv[]) {
}
pinyin_option_t options = USE_TONE | PINYIN_INCOMPLETE;
- ChewingLargeTable largetable(options);
+ ChewingLargeTable2 largetable;
FacadePhraseIndex phrase_index;
const pinyin_table_info_t * phrase_files =
diff --git a/tests/storage/test_phrase_table.cpp b/tests/storage/test_phrase_table.cpp
index dd142de..0aebdde 100644
--- a/tests/storage/test_phrase_table.cpp
+++ b/tests/storage/test_phrase_table.cpp
@@ -14,7 +14,7 @@ int main(int argc, char * argv[]){
exit(ENOENT);
}
- PhraseLargeTable2 largetable;
+ PhraseLargeTable3 largetable;
FacadePhraseIndex phrase_index;
const pinyin_table_info_t * phrase_files =
diff --git a/tests/tests_helper.h b/tests/tests_helper.h
index 6f41f8f..aa43324 100644
--- a/tests/tests_helper.h
+++ b/tests/tests_helper.h
@@ -50,8 +50,8 @@ inline bool load_phrase_index(const pinyin_table_info_t * phrase_files,
}
inline bool load_phrase_table(const pinyin_table_info_t * phrase_files,
- ChewingLargeTable * chewing_table,
- PhraseLargeTable2 * phrase_table,
+ ChewingLargeTable2 * chewing_table,
+ PhraseLargeTable3 * phrase_table,
FacadePhraseIndex * phrase_index){
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
const pinyin_table_info_t * table_info = phrase_files + i;