Make File::Glob more VMS-friendly (Charles Lane)
[p5sagit/p5-mst-13.2.git] / t / lib / gol-compat.t
CommitLineData
c529f79d 1#!./perl -w
2
3BEGIN {
4 chdir 't' if -d 't';
5 unshift @INC, '../lib';
6}
7
8require "newgetopt.pl";
9
10print "1..9\n";
11
12@ARGV = qw(-Foo -baR --foo bar);
13$newgetopt::ignorecase = 0;
14$newgetopt::ignorecase = 0;
15undef $opt_baR;
16undef $opt_bar;
17print "ok 1\n" if NGetOpt ("foo", "Foo=s");
18print ((defined $opt_foo) ? "" : "not ", "ok 2\n");
19print (($opt_foo == 1) ? "" : "not ", "ok 3\n");
20print ((defined $opt_Foo) ? "" : "not ", "ok 4\n");
21print (($opt_Foo eq "-baR") ? "" : "not ", "ok 5\n");
22print ((@ARGV == 1) ? "" : "not ", "ok 6\n");
23print (($ARGV[0] eq "bar") ? "" : "not ", "ok 7\n");
24print (!(defined $opt_baR) ? "" : "not ", "ok 8\n");
25print (!(defined $opt_bar) ? "" : "not ", "ok 9\n");