summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-08-18 13:22:05 +0800
committerPeng Wu <alexepico@gmail.com>2017-08-18 13:22:05 +0800
commitd1bdd53619b3eba505a7e8dc6806fb7721944606 (patch)
tree9f6f2d1d5442a7b92869e992291f626cc928d396
parentbc600e1d24e543c82bb6acf35d2195d50dbf5495 (diff)
downloadlibpinyin-d1bdd53619b3eba505a7e8dc6806fb7721944606.zip
libpinyin-d1bdd53619b3eba505a7e8dc6806fb7721944606.tar.gz
libpinyin-d1bdd53619b3eba505a7e8dc6806fb7721944606.tar.xz
update test_pinyin.cpp
-rw-r--r--tests/test_pinyin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp
index 1f8c5fc..8eadf89 100644
--- a/tests/test_pinyin.cpp
+++ b/tests/test_pinyin.cpp
@@ -69,7 +69,8 @@ int main(int argc, char * argv[]){
size_t len = pinyin_parse_more_full_pinyins(instance, linebuf);
pinyin_guess_sentence_with_prefix(instance, prefixbuf);
- pinyin_guess_candidates(instance, 0);
+ pinyin_guess_candidates(instance, 0,
+ SORT_BY_PHRASE_LENGTH_AND_FREQUENCY);
size_t i = 0;
for (i = 0; i <= len; ++i) {