3 # $RCSfile: mod.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:11 $
8 print "not ok 1\n" unless 1;
10 print "ok 2\n" unless 0;
11 print "not ok 2\n" if 0;
13 1 && (print "not ok 3\n") if 0;
14 1 && (print "ok 3\n") if 1;
15 0 || (print "not ok 4\n") if 0;
16 0 || (print "ok 4\n") if 1;
19 do {$x[$x] = $x;} while ($x++) < 10;
20 if (join(' ',@x) eq '0 1 2 3 4 5 6 7 8 9 10') {
23 print "not ok 5 @x\n";
27 $x = 10 while $x < 10;
28 if ($x == 15) {print "ok 6\n";} else {print "not ok 6\n";}
30 open(foo,'./TEST') || open(foo,'TEST') || open(foo,'t/TEST');
33 print $x > 50 && $x < 1000 ? "ok 7\n" : "not ok 7\n";
36 print "not " if scalar($x) < 0 and $x >= 0;
39 print "not " unless (-(-$x) < 0) == ($x < 0);
42 print "ok 10\n" if $x < 0;
43 print "not ok 10\n" unless $x < 0;
45 print "ok 11\n" unless $x > 0;
46 print "not ok 11\n" if $x > 0;