summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/storage/test_phrase_index.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/storage/test_phrase_index.cpp b/tests/storage/test_phrase_index.cpp
index 0ebcc36..72b6d03 100644
--- a/tests/storage/test_phrase_index.cpp
+++ b/tests/storage/test_phrase_index.cpp
@@ -110,6 +110,8 @@ int main(int argc, char * argv[]){
phrase_index_load.load_text(2, infile);
fclose(infile);
+ phrase_index.compat();
+
MemoryChunk* store1 = new MemoryChunk;
phrase_index_load.store(1, store1);
phrase_index_load.load(1, store1);
@@ -118,6 +120,8 @@ int main(int argc, char * argv[]){
phrase_index_load.store(2, store2);
phrase_index_load.load(2, store2);
+ phrase_index.compat();
+
phrase_index_load.get_phrase_item(16870555, item2);
assert( item2.get_phrase_length() == 14);
assert( item2.get_n_pronunciation() == 1);