X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_libstemmer.c;h=3c18e04f16ae8da1230c5c79f1309f032873ad1c;hp=e657050665f19c3104084253c1d1dec7d985c31b;hb=6d79c6e2281fb22a755f95a15b3da16c3ace7c3a;hpb=33054ee1b9de573a3de49e09267b1bfb912c5a0c diff --git a/test/test_libstemmer.c b/test/test_libstemmer.c index e657050..3c18e04 100644 --- a/test/test_libstemmer.c +++ b/test/test_libstemmer.c @@ -3,15 +3,18 @@ * See the file LICENSE for details. */ #if HAVE_CONFIG_H -#include +#include "config.h" #endif #include #include +#include -#include #include +#if YAZ_HAVE_ICU +#include + int test_stemmer_stem(yaz_stemmer_p stemmer, const char* to_stem, const char *expected) { struct icu_buf_utf16 *src = icu_buf_utf16_create(0); @@ -36,7 +39,6 @@ int test_stemmer_stem(yaz_stemmer_p stemmer, const char* to_stem, const char *ex } - static void tst(void) { UErrorCode status; @@ -60,11 +62,14 @@ static void tst(void) yaz_stemmer_destroy(stemmer); } +#endif int main (int argc, char **argv) { YAZ_CHECK_INIT(argc, argv); +#if YAZ_HAVE_ICU tst(); +#endif YAZ_CHECK_TERM; }