diff options
author | Peng Wu <alexepico@gmail.com> | 2011-08-12 11:05:19 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-08-12 11:05:19 +0800 |
commit | 6a1aa9ea5db1822350c78a66e65d4bd344e2d012 (patch) | |
tree | 1a1ad38fadfdafada3a6de837ad791e8a77d11bb /tests/storage/test_phrase_index.cpp | |
parent | cc6a9b9b390326fbb504728ddede89a6e6918978 (diff) | |
download | libpinyin-6a1aa9ea5db1822350c78a66e65d4bd344e2d012.tar.gz libpinyin-6a1aa9ea5db1822350c78a66e65d4bd344e2d012.tar.xz libpinyin-6a1aa9ea5db1822350c78a66e65d4bd344e2d012.zip |
fixes code styles in test directory.
Diffstat (limited to 'tests/storage/test_phrase_index.cpp')
-rw-r--r-- | tests/storage/test_phrase_index.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/storage/test_phrase_index.cpp b/tests/storage/test_phrase_index.cpp index b48d92c..d2d7be9 100644 --- a/tests/storage/test_phrase_index.cpp +++ b/tests/storage/test_phrase_index.cpp @@ -75,18 +75,18 @@ int main(int argc, char * argv[]){ print_time(time, bench_times); { - PhraseItem item3; - phrase_index.get_phrase_item(1, item3); - item3.increase_pinyin_possibility(custom, &key1, 200); - assert(item3.get_pinyin_possibility(custom, &key1) == 0.5) ; + PhraseItem item3; + phrase_index.get_phrase_item(1, item3); + item3.increase_pinyin_possibility(custom, &key1, 200); + assert(item3.get_pinyin_possibility(custom, &key1) == 0.5) ; } { - PhraseItem item5; - phrase_index.get_phrase_item(1, item5); - gfloat poss = item5.get_pinyin_possibility(custom, &key1); - printf("pinyin poss:%f\n", poss); - assert(poss == 0.5); + PhraseItem item5; + phrase_index.get_phrase_item(1, item5); + gfloat poss = item5.get_pinyin_possibility(custom, &key1); + printf("pinyin poss:%f\n", poss); + assert(poss == 0.5); } FacadePhraseIndex phrase_index_load; |