diff options
author | Peng Wu <alexepico@gmail.com> | 2011-04-19 10:33:36 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-04-19 10:33:36 +0800 |
commit | c255e8e389ff8e0f8803e57d75b29ea4c904dbcb (patch) | |
tree | f8c44b335a4e4e46511aa179af83237572594fe4 /src/storage | |
parent | 1bd05a07d29dbe3f8b03ae73b879797aea8c653a (diff) | |
download | libpinyin-c255e8e389ff8e0f8803e57d75b29ea4c904dbcb.tar.gz libpinyin-c255e8e389ff8e0f8803e57d75b29ea4c904dbcb.tar.xz libpinyin-c255e8e389ff8e0f8803e57d75b29ea4c904dbcb.zip |
add more test cases
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/ngram.cpp | 3 |
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(); |