diff options
author | Peng Wu <alexepico@gmail.com> | 2016-07-05 15:53:58 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-07-05 16:11:27 +0800 |
commit | e3025d3bfbca1f98c7bec84b2fb50235e1e9c4e1 (patch) | |
tree | dc75cb20b735867fea1860291612b55f1ae6c016 /tests/test_chewing.cpp | |
parent | 4c2ba2e080b4ffd0dc611ba2b899ff7671332a7e (diff) | |
download | libpinyin-e3025d3bfbca1f98c7bec84b2fb50235e1e9c4e1.tar.gz libpinyin-e3025d3bfbca1f98c7bec84b2fb50235e1e9c4e1.tar.xz libpinyin-e3025d3bfbca1f98c7bec84b2fb50235e1e9c4e1.zip |
update test cases
Diffstat (limited to 'tests/test_chewing.cpp')
-rw-r--r-- | tests/test_chewing.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_chewing.cpp b/tests/test_chewing.cpp index 3243e1f..b757bc6 100644 --- a/tests/test_chewing.cpp +++ b/tests/test_chewing.cpp @@ -51,10 +51,12 @@ int main(int argc, char * argv[]){ printf("%s\n", sentence); g_free(sentence); - gchar * aux_text = NULL; - pinyin_get_chewing_auxiliary_text(instance, len, &aux_text); - printf("auxiliary text:%s\n", aux_text); - g_free(aux_text); + for (size_t i = 0; i <= len; ++i) { + gchar * aux_text = NULL; + pinyin_get_chewing_auxiliary_text(instance, i, &aux_text); + printf("auxiliary text:%s\n", aux_text); + g_free(aux_text); + } pinyin_train(instance); pinyin_reset(instance); |