diff options
Diffstat (limited to 'contrib/perl5/t/op/join.t')
-rwxr-xr-x | contrib/perl5/t/op/join.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/perl5/t/op/join.t b/contrib/perl5/t/op/join.t new file mode 100755 index 0000000..eec4611 --- /dev/null +++ b/contrib/perl5/t/op/join.t @@ -0,0 +1,12 @@ +#!./perl + +# $RCSfile: join.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:01 $ + +print "1..3\n"; + +@x = (1, 2, 3); +if (join(':',@x) eq '1:2:3') {print "ok 1\n";} else {print "not ok 1\n";} + +if (join('',1,2,3) eq '123') {print "ok 2\n";} else {print "not ok 2\n";} + +if (join(':',split(/ /,"1 2 3")) eq '1:2:3') {print "ok 3\n";} else {print "not ok 3\n";} |