home *** CD-ROM | disk | FTP | other *** search
- #!./perl
-
- print "1..4\n";
-
- @ops = sort <op\\*>;
- $list = join(' ',@ops);
-
- opendir(R, "op");
- @files = grep(/^[^.].*$/, readdir(R));
- closedir R;
- @files = sort @files;
- $otherway = "op\\" . join(" op\\", @files);
-
- 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 (sort <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";
-