[tracker/fts4-fixes: 2/8] tests: tweak FTS tests to cope with the word length changes



commit 66dcd163080419ca26587a54ae483b7dcfc3cbae
Author: Carlos Garnacho <carlos lanedo com>
Date:   Thu Feb 14 17:50:16 2013 +0100

    tests: tweak FTS tests to cope with the word length changes
    
    This has caused some tests to return more results than before,
    so add these extra results to the expected output, as the tests
    still prove their point.

 src/libtracker-fts/tracker-fts-config.h      |    2 ++
 tests/libtracker-fts/limits/fts3limits-1.out |    1 +
 tests/libtracker-fts/limits/fts3limits-2.out |    1 +
 tests/libtracker-fts/limits/fts3limits-4.out |    1 +
 tests/libtracker-fts/prefix/fts3prefix-2.out |    1 +
 5 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-fts-config.h b/src/libtracker-fts/tracker-fts-config.h
index 020663c..46b7450 100644
--- a/src/libtracker-fts/tracker-fts-config.h
+++ b/src/libtracker-fts/tracker-fts-config.h
@@ -64,6 +64,8 @@ void              tracker_fts_config_set_ignore_stop_words  (TrackerFTSConfig *c
                                                              gboolean          value);
 void              tracker_fts_config_set_max_words_to_index (TrackerFTSConfig *config,
                                                              gint              value);
+void              tracker_fts_config_set_max_word_length    (TrackerFTSConfig *config,
+                                                             gint              value);
 
 G_END_DECLS
 
diff --git a/tests/libtracker-fts/limits/fts3limits-1.out b/tests/libtracker-fts/limits/fts3limits-1.out
index 85d8792..d235e92 100644
--- a/tests/libtracker-fts/limits/fts3limits-1.out
+++ b/tests/libtracker-fts/limits/fts3limits-1.out
@@ -1,3 +1,4 @@
+"http://www.example.org/test#2";
 "http://www.example.org/test#3";
 "http://www.example.org/test#4";
 "http://www.example.org/test#5";
diff --git a/tests/libtracker-fts/limits/fts3limits-2.out b/tests/libtracker-fts/limits/fts3limits-2.out
index e69de29..cde9bca 100644
--- a/tests/libtracker-fts/limits/fts3limits-2.out
+++ b/tests/libtracker-fts/limits/fts3limits-2.out
@@ -0,0 +1 @@
+"http://www.example.org/test#2";
diff --git a/tests/libtracker-fts/limits/fts3limits-4.out b/tests/libtracker-fts/limits/fts3limits-4.out
index e69de29..cde9bca 100644
--- a/tests/libtracker-fts/limits/fts3limits-4.out
+++ b/tests/libtracker-fts/limits/fts3limits-4.out
@@ -0,0 +1 @@
+"http://www.example.org/test#2";
diff --git a/tests/libtracker-fts/prefix/fts3prefix-2.out b/tests/libtracker-fts/prefix/fts3prefix-2.out
index 85d8792..d235e92 100644
--- a/tests/libtracker-fts/prefix/fts3prefix-2.out
+++ b/tests/libtracker-fts/prefix/fts3prefix-2.out
@@ -1,3 +1,4 @@
+"http://www.example.org/test#2";
 "http://www.example.org/test#3";
 "http://www.example.org/test#4";
 "http://www.example.org/test#5";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]