From 62dffb4c3615c275d514ee9428d1688770c6173b Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 21 Feb 2012 14:09:32 +0800 Subject: update tests directory --- tests/storage/test_phrase_index.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/storage/test_phrase_index.cpp') diff --git a/tests/storage/test_phrase_index.cpp b/tests/storage/test_phrase_index.cpp index b883c9e..22f5efc 100644 --- a/tests/storage/test_phrase_index.cpp +++ b/tests/storage/test_phrase_index.cpp @@ -7,7 +7,7 @@ size_t bench_times = 100000; int main(int argc, char * argv[]){ PhraseItem phrase_item; - utf16_t string1 = 2; + ucs4_t string1 = 2; ChewingKey key1 = ChewingKey(CHEWING_CH, CHEWING_ZERO_MIDDLE, CHEWING_ENG); ChewingKey key2 = ChewingKey(CHEWING_SH, CHEWING_ZERO_MIDDLE, CHEWING_ANG); @@ -33,7 +33,7 @@ int main(int argc, char * argv[]){ assert(phrase_item.get_unigram_frequency() == 0); - utf16_t string2; + ucs4_t string2; phrase_item.get_phrase_string(&string2); assert(string1 == string2); @@ -106,9 +106,9 @@ int main(int argc, char * argv[]){ assert( item2.get_phrase_length() == 14); assert( item2.get_n_pronunciation() == 1); - gunichar2 buf[1024]; + ucs4_t buf[1024]; item2.get_phrase_string(buf); - char * string = g_utf16_to_utf8( buf, 14, NULL, NULL, NULL); + char * string = g_ucs4_to_utf8( buf, 14, NULL, NULL, NULL); printf("%s\n", string); g_free(string); -- cgit