summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-04-07 14:07:18 +0800
committerPeng Wu <alexepico@gmail.com>2011-04-07 14:07:18 +0800
commit0d839f2ef6d4f70dbad007384ca998eb0ae51732 (patch)
tree54eb34f9bda7c6875ba3f0e96a0be241c83b1991 /tests
parent7d46595e8d2391fc70be12f3ecf8119bdaa47c7b (diff)
downloadlibpinyin-0d839f2ef6d4f70dbad007384ca998eb0ae51732.tar.gz
libpinyin-0d839f2ef6d4f70dbad007384ca998eb0ae51732.tar.xz
libpinyin-0d839f2ef6d4f70dbad007384ca998eb0ae51732.zip
add test case for flexible ngram
Diffstat (limited to 'tests')
-rw-r--r--tests/storage/Makefile.am7
-rw-r--r--tests/storage/test_flexible_ngram.cpp5
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/storage/Makefile.am b/tests/storage/Makefile.am
index 281dd5e..6eb5021 100644
--- a/tests/storage/Makefile.am
+++ b/tests/storage/Makefile.am
@@ -25,7 +25,8 @@ noinst_PROGRAMS = test_parser \
test_pinyin_index \
test_phrase_index \
test_phrase_table \
- test_ngram
+ test_ngram \
+ test_flexible_ngram
test_parser_SOURCES = test_parser.cpp
@@ -46,3 +47,7 @@ test_phrase_table_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
test_ngram_SOURCES = test_ngram.cpp
test_ngram_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
+
+test_flexible_ngram_SOURCES = test_flexible_ngram.cpp
+
+test_flexible_ngram_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
diff --git a/tests/storage/test_flexible_ngram.cpp b/tests/storage/test_flexible_ngram.cpp
new file mode 100644
index 0000000..744187f
--- /dev/null
+++ b/tests/storage/test_flexible_ngram.cpp
@@ -0,0 +1,5 @@
+#include "pinyin.h"
+
+int main(int argc, char * argv[]) {
+ FlexibleBigram<guint64, guint32, guint32> test_bigram;
+}