summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-02-09 16:39:30 +0800
committerPeng Wu <alexepico@gmail.com>2017-02-09 16:39:30 +0800
commit809efb9334e6b8644c8c5bfb180ab32fe8648825 (patch)
tree156e360bbe05d431727aa590149268a492b234be /tests
parent89e2f1ef616670cc51a535a80b638479e94e09eb (diff)
downloadlibpinyin-809efb9334e6b8644c8c5bfb180ab32fe8648825.zip
libpinyin-809efb9334e6b8644c8c5bfb180ab32fe8648825.tar.gz
libpinyin-809efb9334e6b8644c8c5bfb180ab32fe8648825.tar.xz
update test cases
Diffstat (limited to 'tests')
-rw-r--r--tests/test_chewing.cpp4
-rw-r--r--tests/test_pinyin.cpp2
2 files changed, 3 insertions, 3 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);
}
diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp
index 01e60c5..1f8c5fc 100644
--- a/tests/test_pinyin.cpp
+++ b/tests/test_pinyin.cpp
@@ -92,7 +92,7 @@ int main(int argc, char * argv[]){
}
printf("\n");
- pinyin_train(instance);
+ pinyin_train(instance, 0);
pinyin_reset(instance);
pinyin_save(context);
}