perl 1.0 patch 1: Portability bugs and one possible SIGSEGV
[p5sagit/p5-mst-13.2.git] / t / cmd.mod
CommitLineData
8d063cd8 1#!./perl
2
3# $Header: cmd.mod,v 1.0 87/12/18 13:12:09 root Exp $
4
5print "1..6\n";
6
7print "ok 1\n" if 1;
8print "not ok 1\n" unless 1;
9
10print "ok 2\n" unless 0;
11print "not ok 2\n" if 0;
12
131 && (print "not ok 3\n") if 0;
141 && (print "ok 3\n") if 1;
150 || (print "not ok 4\n") if 0;
160 || (print "ok 4\n") if 1;
17
18$x = 0;
19do {$x[$x] = $x;} while ($x++) < 10;
20if (join(' ',@x) eq '0 1 2 3 4 5 6 7 8 9 10') {
21 print "ok 5\n";
22} else {
23 print "not ok 5\n";
24}
25
26$x = 15;
27$x = 10 while $x < 10;
28if ($x == 15) {print "ok 6\n";} else {print "not ok 6\n";}