summaryrefslogtreecommitdiffstats
path: root/tests/storage
diff options
context:
space:
mode:
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_phrase_table.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/storage/test_phrase_table.cpp b/tests/storage/test_phrase_table.cpp
index 08d1626..aa4e50b 100644
--- 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) ){