-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
--- /dev/null
+#include <stdio.h>
+#include "pinyin.h"
+
+int main(int argc, char * argv[]){
+}
char * tmp_string = g_utf16_to_utf8
( (utf16_t *) current_utf16->data, current_utf16->len,
NULL, NULL, NULL);
- fprintf(stderr, "Un-segmentable sentence encountered:%s.\n",
+ fprintf(stderr, "Un-segmentable sentence encountered:%s\n",
tmp_string);
g_array_free(results, TRUE);
return false;