summaryrefslogtreecommitdiffstats
path: root/src/storage/phonetic_key_matrix.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-05-11 16:15:01 +0800
committerPeng Wu <alexepico@gmail.com>2016-05-11 16:15:01 +0800
commit0d1aaf9cb0f4b53114422618cb61510560f4611d (patch)
tree9e6d23653650d87149a0525a029da9ae352f534c /src/storage/phonetic_key_matrix.cpp
parentf76adc9bdd2235166819494f14d689dbcbc911ae (diff)
downloadlibpinyin-0d1aaf9cb0f4b53114422618cb61510560f4611d.tar.gz
libpinyin-0d1aaf9cb0f4b53114422618cb61510560f4611d.tar.xz
libpinyin-0d1aaf9cb0f4b53114422618cb61510560f4611d.zip
add test_matrix.cpp
Diffstat (limited to 'src/storage/phonetic_key_matrix.cpp')
-rw-r--r--src/storage/phonetic_key_matrix.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/storage/phonetic_key_matrix.cpp b/src/storage/phonetic_key_matrix.cpp
index 1f5b8ea..b0b69f9 100644
--- a/src/storage/phonetic_key_matrix.cpp
+++ b/src/storage/phonetic_key_matrix.cpp
@@ -79,11 +79,10 @@ bool dump_phonetic_key_matrix(PhoneticKeyMatrix * matrix) {
for (size_t index = 0; index < length; ++index) {
matrix->get_items(index, keys, key_rests);
+ assert(keys->len == key_rests->len);
printf("Column:%ld:\n", index);
- assert(keys->len == key_rests->len);
-
for (size_t i = 0; i < keys->len; ++i) {
ChewingKey * key = &g_array_index(keys, ChewingKey, i);
ChewingKeyRest * key_rest = &g_array_index(key_rests,