Bugzilla – Attachment 6848 Details for
Bug 7333
Cleaning up tests to use sample data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
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.
Bug-7333---Fixing-up-dbdependentSearcht-to-use-sam.patch (text/plain), 1.28 KB, created by
Chris Cormack
on 2011-12-18 07:26:24 UTC
(
hide
)
Description:
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.
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-12-18 07:26:24 UTC
Size:
1.28 KB
patch
obsolete
>From 9e36f42da3bf77eb7dec2196bb33b1cd48a19eff Mon Sep 17 00:00:00 2001 >From: Liz Rea <wizzyrea@gmail.com> >Date: Thu, 15 Dec 2011 10:21:36 -0600 >Subject: [PATCH] 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. > >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. > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > 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.5.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7333
:
6649
|
6652
|
6653
|
6734
|
6815
| 6848