summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-10-08 12:41:56 +0800
committerPeng Wu <alexepico@gmail.com>2012-10-08 12:41:56 +0800
commit4e024b971a013799ddd201011aca30a94870a46e (patch)
treed81b39b940d82c86bfccad3f546ecb4f874243b1
parent0569a1bf2d894f1b72312ba860b58490fbdc4f8d (diff)
downloadlibpinyin-4e024b971a013799ddd201011aca30a94870a46e.zip
libpinyin-4e024b971a013799ddd201011aca30a94870a46e.tar.gz
libpinyin-4e024b971a013799ddd201011aca30a94870a46e.tar.xz
improves test_pinyin output
-rw-r--r--tests/test_pinyin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp
index 958e2b9..82f0c6c 100644
--- a/tests/test_pinyin.cpp
+++ b/tests/test_pinyin.cpp
@@ -52,6 +52,9 @@ int main(int argc, char * argv[]){
prefixbuf[strlen(prefixbuf) - 1] = '\0';
}
+ fprintf(stdout, "pinyin:");
+ fflush(stdout);
+
if ((read = getline(&linebuf, &linesize, stdin)) == -1)
break;