summaryrefslogtreecommitdiffstats
path: root/tests/storage/test_matrix.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-05-13 15:05:54 +0800
committerPeng Wu <alexepico@gmail.com>2016-05-13 15:05:54 +0800
commit5bfc05a8e0223a95c10f688043dbecc444ae7cfa (patch)
treef48e21fb092ecf771b40aee62b1f16dec068a8cd /tests/storage/test_matrix.cpp
parented191f413f2739982fc737022713cb5226f721de (diff)
downloadlibpinyin-5bfc05a8e0223a95c10f688043dbecc444ae7cfa.tar.gz
libpinyin-5bfc05a8e0223a95c10f688043dbecc444ae7cfa.tar.xz
libpinyin-5bfc05a8e0223a95c10f688043dbecc444ae7cfa.zip
update test_matrix.cpp
Diffstat (limited to 'tests/storage/test_matrix.cpp')
-rw-r--r--tests/storage/test_matrix.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/storage/test_matrix.cpp b/tests/storage/test_matrix.cpp
index fd965b8..3bf787d 100644
--- a/tests/storage/test_matrix.cpp
+++ b/tests/storage/test_matrix.cpp
@@ -29,6 +29,7 @@ using namespace pinyin;
int main(int argc, char * argv[]) {
pinyin_option_t options = PINYIN_CORRECT_ALL;
+ options |= PINYIN_AMB_ALL;
options |= PINYIN_INCOMPLETE;
PhoneticParser2 * parser = new FullPinyinParser2();
@@ -57,6 +58,8 @@ int main(int argc, char * argv[]) {
fill_phonetic_key_matrix_from_chewing_keys
(&matrix, keys, key_rests);
+
+ fuzzy_syllable_step(options, &matrix);
}
print_time(start_time, bench_times);