summaryrefslogtreecommitdiffstats
path: root/tests/storage
diff options
context:
space:
mode:
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_phrase_index.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/storage/test_phrase_index.cpp b/tests/storage/test_phrase_index.cpp
index 807b29c..96f9ca0 100644
--- a/tests/storage/test_phrase_index.cpp
+++ b/tests/storage/test_phrase_index.cpp
@@ -14,8 +14,8 @@ int main(int argc, char * argv[]){
phrase_item.set_phrase_string(1, &string1);
- phrase_item.append_pronunciation(&key1, 100);
- phrase_item.append_pronunciation(&key2, 300);
+ phrase_item.add_pronunciation(&key1, 100);
+ phrase_item.add_pronunciation(&key2, 300);
assert(phrase_item.get_phrase_length() == 1);
@@ -104,7 +104,7 @@ int main(int argc, char * argv[]){
phrase_index.get_phrase_item(16777222, item2);
assert(item2.get_phrase_length() == 1);
- assert(item2.get_n_pronunciation() == 6);
+ assert(item2.get_n_pronunciation() == 2);
return 0;
}