From 5c520717118df51ed6977e556fa846495419af24 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 28 Mar 2013 12:21:41 +0800 Subject: write add_pronunciation --- tests/storage/test_phrase_index.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/storage') 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; } -- cgit