summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-22 14:45:48 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-22 14:45:48 +0800
commitfe1980851c95afa18300c5cf9d8bbda842b784d2 (patch)
treeb4b3d05bafe2ede0fe12a876a3d41b8a57e83fb6
parent961234068dfa2bf504c25663fdabee0350bcab27 (diff)
downloadlibpinyin-fe1980851c95afa18300c5cf9d8bbda842b784d2.zip
libpinyin-fe1980851c95afa18300c5cf9d8bbda842b784d2.tar.gz
libpinyin-fe1980851c95afa18300c5cf9d8bbda842b784d2.tar.xz
begin to write test phrase index logger
-rw-r--r--tests/storage/Makefile.am6
-rw-r--r--tests/storage/test_phrase_index_logger.cpp28
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/storage/Makefile.am b/tests/storage/Makefile.am
index 6eb5021..3097a28 100644
--- a/tests/storage/Makefile.am
+++ b/tests/storage/Makefile.am
@@ -24,10 +24,12 @@ INCLUDES = -I$(top_srcdir)/src \
noinst_PROGRAMS = test_parser \
test_pinyin_index \
test_phrase_index \
+ test_phrase_index_logger \
test_phrase_table \
test_ngram \
test_flexible_ngram
+
test_parser_SOURCES = test_parser.cpp
test_parser_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
@@ -40,6 +42,10 @@ test_phrase_index_SOURCES = test_phrase_index.cpp
test_phrase_index_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
+test_phrase_index_logger_SOURCES = test_phrase_index_logger.cpp
+
+test_phrase_index_logger_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
+
test_phrase_table_SOURCES = test_phrase_table.cpp
test_phrase_table_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
diff --git a/tests/storage/test_phrase_index_logger.cpp b/tests/storage/test_phrase_index_logger.cpp
new file mode 100644
index 0000000..4248db4
--- /dev/null
+++ b/tests/storage/test_phrase_index_logger.cpp
@@ -0,0 +1,28 @@
+/*
+ * libpinyin
+ * Library to deal with pinyin.
+ *
+ * Copyright (C) 2011 Peng Wu <alexepico@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "pinyin.h"
+
+
+int main(int argc, char * argv[]){
+
+ return 0;
+}