[Koha-patches] [PATCH 2/2] Bug 7333 - Fixing up db_dependent/Search.t to use sample data Thanks to Chris N. for helping figure out that it was because there were no French stopwords in the DB that the test was failing.

lrea at nekls.org lrea at nekls.org
Thu Dec 15 17:29:13 CET 2011


From: Liz Rea <wizzyrea at gmail.com>

Patch changes the French string (with French stopwords) to an English string with English stopwords, as only English stopwords are installed in the default data.

This patch will allow Search.t to run on the database attached to this bug.
---
 t/db_dependent/Search.t |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t
index 31316f2..17fac6e 100644
--- a/t/db_dependent/Search.t
+++ b/t/db_dependent/Search.t
@@ -23,7 +23,7 @@ foreach my $string ("Leçon","modèles") {
     ok($results[0] eq $string,"$string is not modified");
 }
 
-foreach my $string ("Les chaussettes de l'archiduchesse") {
+foreach my $string ("A book about the stars") {
     my @results=C4::Search::_remove_stopwords($string,"kw");
     $debug && warn "$string ",Dump(@results);
     ok($results[0] ne $string,"$results[0] from $string");
-- 
1.7.2.5



More information about the Koha-patches mailing list