diff options
author | Peng Wu <alexepico@gmail.com> | 2017-02-09 16:39:30 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2017-02-09 16:39:30 +0800 |
commit | 809efb9334e6b8644c8c5bfb180ab32fe8648825 (patch) | |
tree | 156e360bbe05d431727aa590149268a492b234be /tests/test_chewing.cpp | |
parent | 89e2f1ef616670cc51a535a80b638479e94e09eb (diff) | |
download | libpinyin-809efb9334e6b8644c8c5bfb180ab32fe8648825.tar.gz libpinyin-809efb9334e6b8644c8c5bfb180ab32fe8648825.tar.xz libpinyin-809efb9334e6b8644c8c5bfb180ab32fe8648825.zip |
update test cases
Diffstat (limited to 'tests/test_chewing.cpp')
-rw-r--r-- | tests/test_chewing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_chewing.cpp b/tests/test_chewing.cpp index d0f9c9b..65bbe47 100644 --- a/tests/test_chewing.cpp +++ b/tests/test_chewing.cpp @@ -49,7 +49,7 @@ int main(int argc, char * argv[]){ pinyin_guess_sentence(instance); char * sentence = NULL; - pinyin_get_sentence (instance, &sentence); + pinyin_get_sentence (instance, 0, &sentence); if (sentence) printf("%s\n", sentence); g_free(sentence); @@ -61,7 +61,7 @@ int main(int argc, char * argv[]){ g_free(aux_text); } - pinyin_train(instance); + pinyin_train(instance, 0); pinyin_reset(instance); pinyin_save(context); } |