Bugzilla – Attachment 66781 Details for
Bug 9857
Did you mean? from authorities uses incorrect punctuation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9857: Fix failing tests
Bug-9857-Fix-failing-tests.patch (text/plain), 2.58 KB, created by
Jonathan Druart
on 2017-09-01 19:22:40 UTC
(
hide
)
Description:
Bug 9857: Fix failing tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-09-01 19:22:40 UTC
Size:
2.58 KB
patch
obsolete
>From 9ed0feb192044dcf749642e5b99d97531aded044 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 1 Sep 2017 16:20:18 -0300 >Subject: [PATCH] Bug 9857: Fix failing tests > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/SuggestionEngine_AuthorityFile.t | 2 +- > t/db_dependent/SuggestionEngine_ExplodedTerms.t | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/SuggestionEngine_AuthorityFile.t b/t/SuggestionEngine_AuthorityFile.t >index 10a573444b..eab5fb60e0 100755 >--- a/t/SuggestionEngine_AuthorityFile.t >+++ b/t/SuggestionEngine_AuthorityFile.t >@@ -67,7 +67,7 @@ is(ref($suggestor), 'Koha::SuggestionEngine', 'Created suggestion engine'); > > my $result = $suggestor->get_suggestions({search => 'Cookery'}); > >-is_deeply($result, [ { 'search' => 'an=1234', 'relevance' => 1, 'label' => 'Cooking' } ], "Suggested correct alternative to 'Cookery'"); >+is_deeply($result, [ { 'search' => 'an:1234', 'relevance' => 1, 'label' => 'Cooking' } ], "Suggested correct alternative to 'Cookery'"); > > done_testing(); > >diff --git a/t/db_dependent/SuggestionEngine_ExplodedTerms.t b/t/db_dependent/SuggestionEngine_ExplodedTerms.t >index 68fae90f7c..42b2ba4e07 100644 >--- a/t/db_dependent/SuggestionEngine_ExplodedTerms.t >+++ b/t/db_dependent/SuggestionEngine_ExplodedTerms.t >@@ -106,11 +106,11 @@ is(ref($suggestor), 'Koha::SuggestionEngine', 'Created suggestion engine'); > > my $result = $suggestor->get_suggestions({search => 'Cookery'}); > >-ok((grep { $_->{'search'} eq 'su-na=Cookery' } @$result) && (grep { $_->{'search'} eq 'su-br=Cookery' } @$result) && (grep { $_->{'search'} eq 'su-rl=Cookery' } @$result), "Suggested correct alternatives for keyword search 'Cookery'"); >+ok((grep { $_->{'search'} eq 'su-na:Cookery' } @$result) && (grep { $_->{'search'} eq 'su-br:Cookery' } @$result) && (grep { $_->{'search'} eq 'su-rl:Cookery' } @$result), "Suggested correct alternatives for keyword search 'Cookery'"); > > $result = $suggestor->get_suggestions({search => 'su:Cookery'}); > >-ok((grep { $_->{'search'} eq 'su-na=Cookery' } @$result) && (grep { $_->{'search'} eq 'su-br=Cookery' } @$result) && (grep { $_->{'search'} eq 'su-rl=Cookery' } @$result), "Suggested correct alternatives for subject search 'Cookery'"); >+ok((grep { $_->{'search'} eq 'su-na:Cookery' } @$result) && (grep { $_->{'search'} eq 'su-br:Cookery' } @$result) && (grep { $_->{'search'} eq 'su-rl:Cookery' } @$result), "Suggested correct alternatives for subject search 'Cookery'"); > > $result = $suggestor->get_suggestions({search => 'nt:Cookery'}); > >-- >2.11.0
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 9857
:
45398
|
45490
|
45505
|
66218
|
66325
|
66326
|
66717
|
66718
|
66780
| 66781