diff options
author | Peng Wu <alexepico@gmail.com> | 2010-08-16 15:10:21 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-08-16 15:10:21 +0800 |
commit | 535860f63095e2d877290b657d864a10cd11c9cd (patch) | |
tree | 0ddbdd77a048b4efe01691ebaf372257c7adf23a /tests/storage | |
parent | caca9580d210204c86844c6e9834b6b0aa7b3f45 (diff) | |
download | libpinyin-535860f63095e2d877290b657d864a10cd11c9cd.tar.gz libpinyin-535860f63095e2d877290b657d864a10cd11c9cd.tar.xz libpinyin-535860f63095e2d877290b657d864a10cd11c9cd.zip |
update test case.
Diffstat (limited to 'tests/storage')
-rw-r--r-- | tests/storage/test_phrase_index.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/storage/test_phrase_index.cpp b/tests/storage/test_phrase_index.cpp index d858ae2..0ebcc36 100644 --- a/tests/storage/test_phrase_index.cpp +++ b/tests/storage/test_phrase_index.cpp @@ -58,7 +58,7 @@ int main(int argc, char * argv[]){ assert(string1 == string2); FacadePhraseIndex phrase_index; - assert(phrase_index.add_phrase_item(1, &phrase_item)); + assert(!phrase_index.add_phrase_item(1, &phrase_item)); MemoryChunk* chunk = new MemoryChunk; assert(phrase_index.store(0, chunk)); |