summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-04-19 10:33:36 +0800
committerPeng Wu <alexepico@gmail.com>2011-04-19 10:33:36 +0800
commitc255e8e389ff8e0f8803e57d75b29ea4c904dbcb (patch)
treef8c44b335a4e4e46511aa179af83237572594fe4 /src
parent1bd05a07d29dbe3f8b03ae73b879797aea8c653a (diff)
downloadlibpinyin-c255e8e389ff8e0f8803e57d75b29ea4c904dbcb.tar.gz
libpinyin-c255e8e389ff8e0f8803e57d75b29ea4c904dbcb.tar.xz
libpinyin-c255e8e389ff8e0f8803e57d75b29ea4c904dbcb.zip
add more test cases
Diffstat (limited to 'src')
-rw-r--r--src/storage/ngram.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/storage/ngram.cpp b/src/storage/ngram.cpp
index f0319f4..4282e0c 100644
--- a/src/storage/ngram.cpp
+++ b/src/storage/ngram.cpp
@@ -51,7 +51,8 @@ bool SingleGram::set_total_freq(guint32 total){
}
bool SingleGram::prune(){
-#if 1
+ assert(false);
+#if 0
SingleGramItem * begin = (SingleGramItem *)
((const char *)(m_chunk.begin()) + sizeof(guint32));
SingleGramItem * end = (SingleGramItem *)m_chunk.end();