From bbaefdb7d710861710fc52507160bfb73c8a2e38 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Fri, 16 Nov 2007 14:40:28 +0000 Subject: [PATCH] Reset $GoogleSearchDomain between tets. --- t/google-search.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/google-search.t b/t/google-search.t index f6d3aea4..5cefd040 100644 --- a/t/google-search.t +++ b/t/google-search.t @@ -26,22 +26,27 @@ add_module('google-search.pl'); GoogleSearchInit(); is($GoogleSearchDomain, undef, 'No $ScriptName'); +$GoogleSearchDomain = undef; $ScriptName = 'http://www.communitywiki.org/en'; GoogleSearchInit(); is($GoogleSearchDomain, 'communitywiki.org', $ScriptName); +$GoogleSearchDomain = undef; $ScriptName = 'http://www.community.org:80/'; GoogleSearchInit(); is($GoogleSearchDomain, 'community.org', $ScriptName); +$GoogleSearchDomain = undef; $ScriptName = 'http://www.communitywiki.org'; GoogleSearchInit(); is($GoogleSearchDomain, 'communitywiki.org', $ScriptName); +$GoogleSearchDomain = undef; $ScriptName = 'http://emacswiki.org/cgi-bin/emacs'; GoogleSearchInit(); is($GoogleSearchDomain, 'emacswiki.org', $ScriptName); +$GoogleSearchDomain = undef; $ScriptName = 'http://localhost/wiki.pl'; GoogleSearchInit(); isnt($GoogleSearchDomain, 'localhost', $ScriptName);