3 # $Header: base.term,v 2.0 88/06/05 00:12:13 root Exp $
7 # check "" interpretation
10 if ($x lt ' ') {print "ok 1\n";} else {print "not ok 1\n";}
15 if ($x eq "hi there\n") {print "ok 2\n";} else {print "not ok 2\n";}
22 print "#3\t:$tmp: == :1:\n";
23 if ($#x == '1') {print "ok 3\n";} else {print "not ok 3\n";}
25 # check numeric literal
28 if ($x == '1') {print "ok 4\n";} else {print "not ok 4\n";}
30 # check <> pseudoliteral
32 open(try, "/dev/null") || (die "Can't open /dev/null.");
33 if (<try> eq '') {print "ok 5\n";} else {print "not ok 5\n";}
35 open(try, "../Makefile") || (die "Can't open ../Makefile.");
36 if (<try> ne '') {print "ok 6\n";} else {print "not ok 6\n";}