diff options
author | Peng Wu <alexepico@gmail.com> | 2013-04-02 11:04:36 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-04-02 11:04:36 +0800 |
commit | 1c0feee3a9a7580d8452df7c5196fdba3a79a6f9 (patch) | |
tree | 48a0d74b993bf2fc961cc4d88c8b85426981e709 | |
parent | b16eec3edfae292ac1c34bc7696e61ae8cd934d6 (diff) | |
download | libpinyin-1c0feee3a9a7580d8452df7c5196fdba3a79a6f9.tar.gz libpinyin-1c0feee3a9a7580d8452df7c5196fdba3a79a6f9.tar.xz libpinyin-1c0feee3a9a7580d8452df7c5196fdba3a79a6f9.zip |
update test_phrase_lookup.cpp
-rw-r--r-- | tests/lookup/test_phrase_lookup.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/lookup/test_phrase_lookup.cpp b/tests/lookup/test_phrase_lookup.cpp index b4ee19c..8746e76 100644 --- a/tests/lookup/test_phrase_lookup.cpp +++ b/tests/lookup/test_phrase_lookup.cpp @@ -54,21 +54,8 @@ bool try_phrase_lookup(PhraseLookup * phrase_lookup, } int main(int argc, char * argv[]){ - int i = 1; setlocale(LC_ALL, ""); - /* deal with options. */ - while ( i < argc ){ - if ( strcmp ("--help", argv[i]) == 0 ){ - print_help(); - exit(0); - } else { - print_help(); - exit(EINVAL); - } - ++i; - } - /* init phrase table */ FacadePhraseTable2 phrase_table; |