summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/test_pinyin_lookup.cpp5
-rw-r--r--tests/storage/test_matrix.cpp5
2 files changed, 4 insertions, 6 deletions
diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp
index ab14242..ac43ce5 100644
--- a/tests/lookup/test_pinyin_lookup.cpp
+++ b/tests/lookup/test_pinyin_lookup.cpp
@@ -90,8 +90,7 @@ int main( int argc, char * argv[]){
continue;
/* fill the matrix. */
- fill_phonetic_key_matrix_from_chewing_keys
- (&matrix, keys, key_rests);
+ fill_matrix(&matrix, keys, key_rests);
resplit_step(options, &matrix);
@@ -99,7 +98,7 @@ int main( int argc, char * argv[]){
fuzzy_syllable_step(options, &matrix);
- dump_phonetic_key_matrix(&matrix);
+ dump_matrix(&matrix);
/* initialize constraints. */
g_array_set_size(constraints, matrix.size());
diff --git a/tests/storage/test_matrix.cpp b/tests/storage/test_matrix.cpp
index d80b030..5602bd6 100644
--- a/tests/storage/test_matrix.cpp
+++ b/tests/storage/test_matrix.cpp
@@ -124,8 +124,7 @@ int main(int argc, char * argv[]) {
len = parser->parse(options, keys, key_rests,
linebuf, strlen(linebuf));
- fill_phonetic_key_matrix_from_chewing_keys
- (&matrix, keys, key_rests);
+ fill_matrix(&matrix, keys, key_rests);
resplit_step(options, &matrix);
@@ -137,7 +136,7 @@ int main(int argc, char * argv[]) {
printf("parsed %d chars, %d keys.\n", len, keys->len);
- dump_phonetic_key_matrix(&matrix);
+ dump_matrix(&matrix);
PhraseIndexRanges ranges;
memset(ranges, 0, sizeof(PhraseIndexRanges));