summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-07-20 18:10:58 +0800
committerPeng Wu <alexepico@gmail.com>2011-07-20 18:10:58 +0800
commit4578356ad0d2854d631739967d01ef9755f3289e (patch)
treed693a620a72a7769d759889f8b41b00238a36397 /tests
parent39e9373312c719a1e151db8d2e35c57b39917d18 (diff)
downloadlibpinyin-4578356ad0d2854d631739967d01ef9755f3289e.tar.gz
libpinyin-4578356ad0d2854d631739967d01ef9755f3289e.tar.xz
libpinyin-4578356ad0d2854d631739967d01ef9755f3289e.zip
add test phrase lookup
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/Makefile.am6
-rw-r--r--tests/lookup/test_phrase_lookup.cpp5
2 files changed, 10 insertions, 1 deletions
diff --git a/tests/lookup/Makefile.am b/tests/lookup/Makefile.am
index 9e8cef4..6887605 100644
--- a/tests/lookup/Makefile.am
+++ b/tests/lookup/Makefile.am
@@ -21,8 +21,12 @@ INCLUDES = -I$(top_srcdir)/src \
-I$(top_srcdir)/src/lookup \
@GLIB2_CPPFLAGS@
-noinst_PROGRAMS = test_simple_lookup
+noinst_PROGRAMS = test_simple_lookup test_phrase_lookup
test_simple_lookup_SOURCES = test_simple_lookup.cpp
test_simple_lookup_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@
+
+test_phrase_lookup_SOURCES = test_phrase_lookup.cpp
+
+test_phrase_lookup_LDADD = ../../src/libpinyin.la @GLIB2_LDFLAGS@ \ No newline at end of file
diff --git a/tests/lookup/test_phrase_lookup.cpp b/tests/lookup/test_phrase_lookup.cpp
new file mode 100644
index 0000000..d2519c4
--- /dev/null
+++ b/tests/lookup/test_phrase_lookup.cpp
@@ -0,0 +1,5 @@
+#include <stdio.h>
+#include "pinyin.h"
+
+int main(int argc, char * argv[]){
+}