diff options
Diffstat (limited to 'tests/lookup/test_pinyin_lookup.cpp')
-rw-r--r-- | tests/lookup/test_pinyin_lookup.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp index ac43ce5..9978551 100644 --- a/tests/lookup/test_pinyin_lookup.cpp +++ b/tests/lookup/test_pinyin_lookup.cpp @@ -82,7 +82,8 @@ int main( int argc, char * argv[]){ ChewingKeyVector keys = g_array_new(FALSE, FALSE, sizeof(ChewingKey)); ChewingKeyRestVector key_rests = g_array_new(FALSE, FALSE, sizeof(ChewingKeyRest)); - parser.parse(options, keys, key_rests, linebuf, strlen(linebuf)); + int parsed_len = parser.parse(options, keys, key_rests, + linebuf, strlen(linebuf)); PhoneticKeyMatrix matrix; @@ -90,7 +91,7 @@ int main( int argc, char * argv[]){ continue; /* fill the matrix. */ - fill_matrix(&matrix, keys, key_rests); + fill_matrix(&matrix, keys, key_rests, parsed_len); resplit_step(options, &matrix); |