aboutsummaryrefslogtreecommitdiffstats
path: root/test/ordchr.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/ordchr.awk')
-rw-r--r--test/ordchr.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ordchr.awk b/test/ordchr.awk
index abb793a0..0295105e 100644
--- a/test/ordchr.awk
+++ b/test/ordchr.awk
@@ -2,4 +2,9 @@
BEGIN {
print chr(ord("A"))
+ print chr(ord("0"))
+ print ord(chr(65))
+ # test if type conversion between strings and numbers is working properly
+ print chr(ord(0))
+ print ord(chr("65"))
}