summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-17 12:01:22 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-17 12:01:22 +0800
commit70571740ae2b8a71cfec139d674c8f3b3fd1c232 (patch)
treefcd7d4e7de5acf08b5a2457d1f4c905c7e17d4e1 /tests
parent2b421aafedeba0a9e7d1684365a1e5671081e16b (diff)
downloadlibpinyin-70571740ae2b8a71cfec139d674c8f3b3fd1c232.tar.gz
libpinyin-70571740ae2b8a71cfec139d674c8f3b3fd1c232.tar.xz
libpinyin-70571740ae2b8a71cfec139d674c8f3b3fd1c232.zip
pinyin apis WIP
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/test_simple_lookup.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lookup/test_simple_lookup.cpp b/tests/lookup/test_simple_lookup.cpp
index 7e4d256..96c512a 100644
--- a/tests/lookup/test_simple_lookup.cpp
+++ b/tests/lookup/test_simple_lookup.cpp
@@ -29,12 +29,12 @@ int main( int argc, char * argv[]){
PinyinCustomSettings custom;
PinyinLargeTable largetable(&custom);
- BitmapPinyinValidator validator;
- validator.initialize(&largetable);
-
MemoryChunk * new_chunk = new MemoryChunk;
new_chunk->load("../../data/pinyin_index.bin");
largetable.load(new_chunk);
+
+ BitmapPinyinValidator validator;
+ validator.initialize(&largetable);
FacadePhraseIndex phrase_index;
new_chunk = new MemoryChunk;