summaryrefslogtreecommitdiff
path: root/t/op.glob
diff options
context:
space:
mode:
Diffstat (limited to 't/op.glob')
-rw-r--r--t/op.glob22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/op.glob b/t/op.glob
new file mode 100644
index 0000000000..c04f7f3271
--- /dev/null
+++ b/t/op.glob
@@ -0,0 +1,22 @@
+#!./perl
+
+# $Header: op.glob,v 3.0 89/10/18 15:29:19 lwall Locked $
+
+print "1..4\n";
+
+@ops = <op.*>;
+$list = join(' ',@ops);
+
+chop($otherway = `echo op.*`);
+
+print $list eq $otherway ? "ok 1\n" : "not ok 1\n$list\n$otherway\n";
+
+print $/ eq "\n" ? "ok 2\n" : "not ok 2\n";
+
+while (<jskdfjskdfj* op.* jskdjfjkosvk*>) {
+ $not = "not " unless $_ eq shift @ops;
+ $not = "not at all " if $/ eq "\0";
+}
+print "${not}ok 3\n";
+
+print $/ eq "\n" ? "ok 4\n" : "not ok 4\n";