From e3025d3bfbca1f98c7bec84b2fb50235e1e9c4e1 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 5 Jul 2016 15:53:58 +0800 Subject: update test cases --- tests/test_chewing.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/test_chewing.cpp') 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); -- cgit