diff options
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); |