projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb201a7
)
add test case
author
Peng Wu
<alexepico@gmail.com>
Tue, 7 Sep 2010 02:43:10 +0000
(10:43 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Tue, 7 Sep 2010 02:43:10 +0000
(10:43 +0800)
tests/storage/test_phrase_table.cpp
patch
|
blob
|
history
diff --git
a/tests/storage/test_phrase_table.cpp
b/tests/storage/test_phrase_table.cpp
index
08d1626
..
aa4e50b
100644
(file)
--- a/
tests/storage/test_phrase_table.cpp
+++ b/
tests/storage/test_phrase_table.cpp
@@
-45,6
+45,10
@@
int main(int argc, char * argv[]){
largetable.load_text(gbkfile);
fclose(gbkfile);
+ MemoryChunk * chunk = new MemoryChunk;
+ largetable.store(chunk);
+ largetable.load(chunk);
+
char * linebuf = NULL;
size_t size = 0;
while( getline(&linebuf, &size, stdin) ){