summaryrefslogtreecommitdiff
path: root/t/op/join.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/join.t')
-rw-r--r--t/op/join.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/op/join.t b/t/op/join.t
new file mode 100644
index 0000000000..b219af380d
--- /dev/null
+++ b/t/op/join.t
@@ -0,0 +1,12 @@
+#!./perl
+
+# $Header: join.t,v 4.0 91/03/20 01:53:17 lwall Locked $
+
+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";}