projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35ea4f2
)
shift with barewords is deprecated, so this test from perl 1 needs updating.
author
Nicholas Clark
<nick@ccl4.org>
Tue, 13 Oct 2009 14:37:12 +0000
(15:37 +0100)
committer
Jesse Vincent
<jesse@bestpractical.com>
Fri, 16 Oct 2009 16:30:16 +0000
(12:30 -0400)
t/op/unshift.t
patch
|
blob
|
history
diff --git
a/t/op/unshift.t
b/t/op/unshift.t
index
0c26623
..
30291fb
100644
(file)
--- a/
t/op/unshift.t
+++ b/
t/op/unshift.t
@@
-3,10
+3,10
@@
print "1..2\n";
@a = (1,2,3);
-$cnt1 = unshift(a,0);
+$cnt1 = unshift(
@
a,0);
if (join(' ',@a) eq '0 1 2 3') {print "ok 1\n";} else {print "not ok 1\n";}
-$cnt2 = unshift(a,3,2,1);
+$cnt2 = unshift(
@
a,3,2,1);
if (join(' ',@a) eq '3 2 1 0 1 2 3') {print "ok 2\n";} else {print "not ok 2\n";}