diff options
Diffstat (limited to 'tests/test_pinyin.cpp')
-rw-r--r-- | tests/test_pinyin.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp index 31aec84..5fe97ee 100644 --- a/tests/test_pinyin.cpp +++ b/tests/test_pinyin.cpp @@ -37,8 +37,13 @@ int main(int argc, char * argv[]){ linebuf[strlen(linebuf) - 1] = '\0'; } - if ( strcmp ( linebuf, "quit" ) == 0) + if ( strcmp ( linebuf, "quit" ) == 0) { break; + } + + if (linebuf[0] == '\0') { + continue; + } pinyin_parse_more_full_pinyins(instance, linebuf); pinyin_guess_sentence(instance); |