diff options
Diffstat (limited to 't/op/ord.t')
-rwxr-xr-x | t/op/ord.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/op/ord.t b/t/op/ord.t index 67b8e24686..37128382d8 100755 --- a/t/op/ord.t +++ b/t/op/ord.t @@ -2,7 +2,7 @@ # $RCSfile: ord.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:09 $ -print "1..2\n"; +print "1..3\n"; # compile time evaluation @@ -12,3 +12,5 @@ if (ord('A') == 65) {print "ok 1\n";} else {print "not ok 1\n";} $x = 'ABC'; if (ord($x) == 65) {print "ok 2\n";} else {print "not ok 2\n";} + +if (chr 65 == A) {print "ok 3\n";} else {print "not ok 3\n";} |