summaryrefslogtreecommitdiffstats
path: root/tests/storage
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-06-17 14:43:40 +0800
committerPeng Wu <alexepico@gmail.com>2013-06-17 14:43:40 +0800
commit46af45028fbb166c3a4be4239b0126db39efd2b4 (patch)
tree5fb1c4adeab50b5cd9108c0cc0536423ceb347aa /tests/storage
parent4f082982bcdb340b58454526da681169cee4fd9f (diff)
downloadlibpinyin-46af45028fbb166c3a4be4239b0126db39efd2b4.tar.gz
libpinyin-46af45028fbb166c3a4be4239b0126db39efd2b4.tar.xz
libpinyin-46af45028fbb166c3a4be4239b0126db39efd2b4.zip
check return values
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_phrase_index_logger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/storage/test_phrase_index_logger.cpp b/tests/storage/test_phrase_index_logger.cpp
index 74cd5af..c423c40 100644
--- a/tests/storage/test_phrase_index_logger.cpp
+++ b/tests/storage/test_phrase_index_logger.cpp
@@ -31,7 +31,7 @@ int main(int argc, char * argv[]){
phrase_index.load(1, chunk);
PhraseIndexRange range;
- phrase_index.get_range(1, range);
+ assert(ERROR_OK == phrase_index.get_range(1, range));
for (size_t i = range.m_range_begin; i < range.m_range_end; ++i ) {
phrase_index.add_unigram_frequency(i, 1);
}