diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | tests/storage/test_parser.cpp | 2 | ||||
-rw-r--r-- | tests/test_pinyin.cpp | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index dea6172..580709d 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ(2.60) -AC_INIT(libpinyin, 0.2.99, alexepico@gmail.com) +AC_INIT(libpinyin, 0.2.99.1, alexepico@gmail.com) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([config.h.in]) AC_CONFIG_HEADER([config.h]) diff --git a/tests/storage/test_parser.cpp b/tests/storage/test_parser.cpp index 2323106..aad719b 100644 --- a/tests/storage/test_parser.cpp +++ b/tests/storage/test_parser.cpp @@ -113,7 +113,7 @@ int main (int argc, char * argv []) parser = new PinyinShuangPinParser (SHUANG_PIN_PYJJ); else if (!strcmp (argv[i], "sp-xhe")) parser = new PinyinShuangPinParser (SHUANG_PIN_XHE); - if (!strcmp (argv[i], "zy") || !strcmp (argv[i], "zy-standard") || !strcmp (argv[i], "zy-default")) + else if (!strcmp (argv[i], "zy") || !strcmp (argv[i], "zy-standard") || !strcmp (argv[i], "zy-default")) parser = new PinyinZhuYinParser (); else if (!strcmp (argv[i], "zy-hsu")) parser = new PinyinZhuYinParser (ZHUYIN_HSU); diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp index 920c324..eb868d3 100644 --- a/tests/test_pinyin.cpp +++ b/tests/test_pinyin.cpp @@ -37,9 +37,8 @@ int main(int argc, char * argv[]){ linebuf[strlen(linebuf) - 1] = '\0'; } - if ( strcmp ( linebuf, "quit" ) == 0) { + if ( strcmp ( linebuf, "quit" ) == 0) break; - } pinyin_parse_more_full_pinyins(instance, linebuf); pinyin_guess_sentence(instance); |