summaryrefslogtreecommitdiffstats
path: root/tests/storage/test_chewing_table.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-12-07 17:07:08 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-07 17:07:08 +0800
commitdfe121f57c1834a622f8ea2dedafc47c47edec8f (patch)
tree31520d57aa141297685796945650bb004d620434 /tests/storage/test_chewing_table.cpp
parenta9f3ef4fc24487828775e7dbdcda4bf0fdab023c (diff)
downloadlibpinyin-dfe121f57c1834a622f8ea2dedafc47c47edec8f.tar.gz
libpinyin-dfe121f57c1834a622f8ea2dedafc47c47edec8f.tar.xz
libpinyin-dfe121f57c1834a622f8ea2dedafc47c47edec8f.zip
fixes test chewing table
Diffstat (limited to 'tests/storage/test_chewing_table.cpp')
-rw-r--r--tests/storage/test_chewing_table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/storage/test_chewing_table.cpp b/tests/storage/test_chewing_table.cpp
index d79a446..d988222 100644
--- a/tests/storage/test_chewing_table.cpp
+++ b/tests/storage/test_chewing_table.cpp
@@ -96,7 +96,7 @@ int main(int argc, char * argv[]) {
largetable.search(keys->len, (ChewingKey *)keys->data, ranges);
- for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
+ for (size_t i = min_index; i < max_index; ++i) {
GArray * & range = ranges[i];
if (range) {
for (size_t k = 0; k < range->len; ++k) {