summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-12-05 11:35:17 +0800
committerPeng Wu <alexepico@gmail.com>2012-12-05 11:43:17 +0800
commit20fde3f877ec9448671c2a97ab035b3d844433c0 (patch)
treee61463f7b8c4c4704cc2f72f6bb7de81c7db799f /tests
parenta981d9a0704b84b04b90dcedfcf96c20c9ed4bb8 (diff)
downloadlibpinyin-20fde3f877ec9448671c2a97ab035b3d844433c0.tar.gz
libpinyin-20fde3f877ec9448671c2a97ab035b3d844433c0.tar.xz
libpinyin-20fde3f877ec9448671c2a97ab035b3d844433c0.zip
fixes pinyin_translate_token
Diffstat (limited to 'tests')
-rw-r--r--tests/test_phrase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_phrase.cpp b/tests/test_phrase.cpp
index 36603e7..fdee52e 100644
--- a/tests/test_phrase.cpp
+++ b/tests/test_phrase.cpp
@@ -52,7 +52,7 @@ int main(int argc, char * argv[]){
continue;
char * word = NULL;
- pinyin_translate_token(instance, token, &word);
+ pinyin_token_get_phrase(instance, token, NULL, &word);
printf("%s\t", word);
g_free(word);
}