diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/Makefile.am | 7 | ||||
-rw-r--r-- | tests/storage/test_flexible_ngram.cpp | 5 |
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; +} |