summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Whitener <cwhitener@gmail.com>2023-05-02 20:56:49 -0400
committerOlaf Alders <olaf@wundersolutions.com>2023-05-03 06:29:40 -0400
commit847191e6fe4ca67ca7462a22a0c5fb6768d3b1ba (patch)
tree80353db4654be58dc81311e0db3b153abc4a1809
parent538f054b030ca206aa6c934e5415d79b01a0f801 (diff)
downloaduri-847191e6fe4ca67ca7462a22a0c5fb6768d3b1ba.tar.gz
Remove use of Taint in tests.
Also, ensure all tests files do not include the shebang. t/query.t had a join() over an array with undef values; fix that.
-rw-r--r--t/cwd.t2
-rw-r--r--t/file.t2
-rw-r--r--t/ipv6.t2
-rw-r--r--t/query.t2
4 files changed, 1 insertions, 7 deletions
diff --git a/t/cwd.t b/t/cwd.t
index 6ea5560..b630254 100644
--- a/t/cwd.t
+++ b/t/cwd.t
@@ -1,5 +1,3 @@
-#!perl -T
-
use strict;
use warnings;
diff --git a/t/file.t b/t/file.t
index d5d296e..4a7fd0b 100644
--- a/t/file.t
+++ b/t/file.t
@@ -1,5 +1,3 @@
-#!perl -T
-
use strict;
use warnings;
diff --git a/t/ipv6.t b/t/ipv6.t
index 5dfb337..48c31f0 100644
--- a/t/ipv6.t
+++ b/t/ipv6.t
@@ -1,5 +1,3 @@
-#!perl
-
use strict;
use warnings;
diff --git a/t/query.t b/t/query.t
index f095fef..e855153 100644
--- a/t/query.t
+++ b/t/query.t
@@ -82,7 +82,7 @@ is $u, "?a=1;b=2";
$u->query('a&b=2');
@q = $u->query_form;
-is join(":", @q), "a::b:2";
+is join(":", map { defined ? $_ : '' } @q), "a::b:2";
ok !defined($q[1]);
$u->query_form(@q);