diff options
author | Mark Murray <markm@FreeBSD.org> | 1998-09-09 07:00:04 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 1998-09-09 07:00:04 +0000 |
commit | ff6b7ba98e8d4aab04cbe2bfdffdfc9171c1812b (patch) | |
tree | 58b20e81687d6d5931f120b50802ed21225bf440 /contrib/perl5/t/op/join.t | |
download | src-test2-83d6726b28d183c4257b0c8967a22dabca40be9e.tar.gz src-test2-83d6726b28d183c4257b0c8967a22dabca40be9e.zip |
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 000000000000..eec4611e625d --- /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";} |