aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-22 11:02:17 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-22 11:02:17 -0700
commit271477d8c26794abd8310e2abb89b746204660af (patch)
treea4701a52f9ff1918e25a75e09267bfba0b063296 /t
parentThe maintainer of MIME::tools released a new version that now supports (diff)
downloadbugzilla-271477d8c26794abd8310e2abb89b746204660af.tar.gz
bugzilla-271477d8c26794abd8310e2abb89b746204660af.tar.bz2
bugzilla-271477d8c26794abd8310e2abb89b746204660af.zip
Bug 560009: Use firstidx from List::MoreUtils instead of lsearch
r=timello, a=mkanat
Diffstat (limited to 't')
-rw-r--r--t/007util.t8
1 files changed, 1 insertions, 7 deletions
diff --git a/t/007util.t b/t/007util.t
index af36e94ac..742c2b2d2 100644
--- a/t/007util.t
+++ b/t/007util.t
@@ -26,7 +26,7 @@
use lib 't';
use Support::Files;
-use Test::More tests => 16;
+use Test::More tests => 13;
BEGIN {
use_ok(Bugzilla);
@@ -50,12 +50,6 @@ is(html_quote("<lala&@>"),"&lt;lala&amp;&#64;&gt;",'html_quote');
#url_quote():
is(url_quote("<lala&>gaa\"'[]{\\"),"%3Clala%26%3Egaa%22%27%5B%5D%7B%5C",'url_quote');
-#lsearch():
-my @list = ('apple','pear','plum','<"\\%');
-is(lsearch(\@list,'pear'),1,'lsearch 1');
-is(lsearch(\@list,'<"\\%'),3,'lsearch 2');
-is(lsearch(\@list,'kiwi'),-1,'lsearch 3 (missing item)');
-
#trim():
is(trim(" fg<*\$%>+=~~ "),'fg<*$%>+=~~','trim()');