3 # $RCSfile: term.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:07 $
14 # check "" interpretation
17 # 10 is ASCII/Iso Latin, 21 is EBCDIC.
19 ($Config{ebcdic} eq 'define' && $x eq chr(21))) {print "ok 1\n";}
20 else {print "not ok 1\n";}
25 if ($x eq "hi there\n") {print "ok 2\n";} else {print "not ok 2\n";}
32 print "#3\t:$tmp: == :1:\n";
33 if ($#x == '1') {print "ok 3\n";} else {print "not ok 3\n";}
35 # check numeric literal
38 if ($x == '1') {print "ok 4\n";} else {print "not ok 4\n";}
41 if (($x | 1) == 101) {print "ok 5\n";} else {print "not ok 5\n";}
43 # check <> pseudoliteral
45 open(try, "/dev/null") || open(try,"nla0:") || (die "Can't open /dev/null.");
51 die "/dev/null IS NOT A CHARACTER SPECIAL FILE!!!!\n" unless -c '/dev/null';
54 open(try, "../Configure") || (die "Can't open ../Configure.");
55 if (<try> ne '') {print "ok 7\n";} else {print "not ok 7\n";}