summaryrefslogtreecommitdiff
path: root/t/cmd/switch.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-10-13 15:14:12 +0100
committerJesse Vincent <jesse@bestpractical.com>2009-10-16 12:30:14 -0400
commit2a70d4f61c76d61d938271d96ddac9f5537a132b (patch)
tree9676343ade71be5b341eb763a5ca76f5361c15a6 /t/cmd/switch.t
parenta026e652f130da8b58678a660c78f33c386027aa (diff)
downloadperl-2a70d4f61c76d61d938271d96ddac9f5537a132b.tar.gz
do subname() is deprecated, so this test from perl 3 needs updating.
Diffstat (limited to 't/cmd/switch.t')
-rw-r--r--t/cmd/switch.t36
1 files changed, 18 insertions, 18 deletions
diff --git a/t/cmd/switch.t b/t/cmd/switch.t
index 82f417ff4b..4b588d4418 100644
--- a/t/cmd/switch.t
+++ b/t/cmd/switch.t
@@ -17,12 +17,12 @@ sub foo1 {
}
}
-print do foo1(0) == 20 ? "ok 1\n" : "not ok 1\n";
-print do foo1(1) == 1 ? "ok 2\n" : "not ok 2\n";
-print do foo1(2) == 2 ? "ok 3\n" : "not ok 3\n";
-print do foo1(3) == 3 ? "ok 4\n" : "not ok 4\n";
-print do foo1(4) == 4 ? "ok 5\n" : "not ok 5\n";
-print do foo1(5) == 20 ? "ok 6\n" : "not ok 6\n";
+print foo1(0) == 20 ? "ok 1\n" : "not ok 1\n";
+print foo1(1) == 1 ? "ok 2\n" : "not ok 2\n";
+print foo1(2) == 2 ? "ok 3\n" : "not ok 3\n";
+print foo1(3) == 3 ? "ok 4\n" : "not ok 4\n";
+print foo1(4) == 4 ? "ok 5\n" : "not ok 5\n";
+print foo1(5) == 20 ? "ok 6\n" : "not ok 6\n";
sub foo2 {
$_ = shift(@_);
@@ -38,12 +38,12 @@ sub foo2 {
return $_;
}
-print do foo2(0) == 20 ? "ok 7\n" : "not ok 7\n";
-print do foo2(1) == 1 ? "ok 8\n" : "not ok 8\n";
-print do foo2(2) == 2 ? "ok 9\n" : "not ok 9\n";
-print do foo2(3) == 3 ? "ok 10\n" : "not ok 10\n";
-print do foo2(4) == 4 ? "ok 11\n" : "not ok 11\n";
-print do foo2(5) == 20 ? "ok 12\n" : "not ok 12\n";
+print foo2(0) == 20 ? "ok 7\n" : "not ok 7\n";
+print foo2(1) == 1 ? "ok 8\n" : "not ok 8\n";
+print foo2(2) == 2 ? "ok 9\n" : "not ok 9\n";
+print foo2(3) == 3 ? "ok 10\n" : "not ok 10\n";
+print foo2(4) == 4 ? "ok 11\n" : "not ok 11\n";
+print foo2(5) == 20 ? "ok 12\n" : "not ok 12\n";
sub foo3 {
$_ = shift(@_);
@@ -65,9 +65,9 @@ sub foo3 {
return 40;
}
-print do foo3(0) == 20 ? "ok 13\n" : "not ok 13\n";
-print do foo3(1) == 1 ? "ok 14\n" : "not ok 14\n";
-print do foo3(2) == 2 ? "ok 15\n" : "not ok 15\n";
-print do foo3(3) == 3 ? "ok 16\n" : "not ok 16\n";
-print do foo3(4) == 4 ? "ok 17\n" : "not ok 17\n";
-print do foo3(5) == 20 ? "ok 18\n" : "not ok 18\n";
+print foo3(0) == 20 ? "ok 13\n" : "not ok 13\n";
+print foo3(1) == 1 ? "ok 14\n" : "not ok 14\n";
+print foo3(2) == 2 ? "ok 15\n" : "not ok 15\n";
+print foo3(3) == 3 ? "ok 16\n" : "not ok 16\n";
+print foo3(4) == 4 ? "ok 17\n" : "not ok 17\n";
+print foo3(5) == 20 ? "ok 18\n" : "not ok 18\n";