Bug 5542: Availability code commented out - Uncommenting
[koha.git] / t / db_dependent / Search.t
blob31316f2170d264bafbed808331b7cd156f71c9ef
1 #!/usr/bin/perl
3 # This Koha test module is a stub!
4 # Add more tests here!!!
6 use strict;
7 use warnings;
8 use utf8;
10 use YAML;
12 use C4::Debug;
13 use C4::Context;
14 use C4::Search;
16 use Test::More tests => 4;
18 use_ok('C4::Search');
20 foreach my $string ("Leçon","modèles") {
21 my @results=C4::Search::_remove_stopwords($string,"kw");
22 $debug && warn "$string ",Dump(@results);
23 ok($results[0] eq $string,"$string is not modified");
26 foreach my $string ("Les chaussettes de l'archiduchesse") {
27 my @results=C4::Search::_remove_stopwords($string,"kw");
28 $debug && warn "$string ",Dump(@results);
29 ok($results[0] ne $string,"$results[0] from $string");