3 # $RCSfile: term.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:07 $
11 # check "" interpretation
14 # 10 is ASCII/Iso Latin, 13 is Mac OS, 21 is EBCDIC.
15 if ($x eq chr(10)) { print "ok 1\n";}
16 elsif ($x eq chr(13)) { print "ok 1 # Mac OS\n"; }
17 elsif ($x eq chr(21)) { print "ok 1 # EBCDIC\n"; }
18 else {print "not ok 1\n";}
22 $x = `$^X -le "print 'hi there'"`;
23 if ($x eq "hi there\n") {print "ok 2\n";} else {print "not ok 2\n";}
30 print "#3\t:$tmp: == :1:\n";
31 if ($#x == '1') {print "ok 3\n";} else {print "not ok 3\n";}
33 # check numeric literal
36 if ($x == '1') {print "ok 4\n";} else {print "not ok 4\n";}
39 if (($x | 1) == 101) {print "ok 5\n";} else {print "not ok 5\n";}
41 # check <> pseudoliteral
44 open(try,"Dev:Null") || (die "Can't open /dev/null.");
46 open(try, "/dev/null") || open(try,"nla0:") || (die "Can't open /dev/null.");
54 die "/dev/null IS NOT A CHARACTER SPECIAL FILE!!!!\n" unless -c '/dev/null';
57 open(try, "harness") || (die "Can't open harness.");
58 if (<try> ne '') {print "ok 7\n";} else {print "not ok 7\n";}