]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fts: Test trailing "number." for TR29 in test-fts-tokenizer
authorTimo Sirainen <tss@iki.fi>
Mon, 11 May 2015 11:35:49 +0000 (14:35 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 11 May 2015 11:35:49 +0000 (14:35 +0300)
src/lib-fts/test-fts-tokenizer.c

index 6acde104d93c1a50778d002b89d5a095cbb504f5..45953aff20677b4bda5ebe25899b69b60df1400b 100644 (file)
@@ -27,6 +27,8 @@ static const char *test_inputs[] = {
        "and longlonglongabcdefghijklmnopqrstuvwxyz more.\n\n "
        "(\"Hello world\")3.14 3,14 last",
 
+       "1.",
+
        /* whitespace: with Unicode(utf8) U+FF01(ef bc 81)(U+2000(e2 80 80) and
           U+205A(e2 81 9a) and U+205F(e2 81 9f) */
        "hello\xEF\xBC\x81world\r\nAnd\xE2\x80\x80there\twas: text "
@@ -126,6 +128,8 @@ static void test_fts_tokenizer_generic_only(void)
                "and", "longlonglongabcdefghijklmnopqr",
                "more", "Hello", "world", "3", "14", "3", "14", "last", NULL,
 
+               "1", NULL,
+
                "hello", "world", "And",
                "there", "was", "text", "galore",
                "and", "more", NULL,
@@ -163,6 +167,8 @@ static void test_fts_tokenizer_generic_tr29_only(void)
                "and", "longlonglongabcdefghijklmnopqr",
                "more", "Hello", "world", "3.14", "3,14", "last", NULL,
 
+               "1", NULL,
+
                "hello", "world", "And",
                "there", "was", "text", "galore",
                "and", "more", NULL,