aboutsummaryrefslogtreecommitdiffstats
path: root/test/intarray.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/intarray.awk')
-rw-r--r--test/intarray.awk10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/intarray.awk b/test/intarray.awk
new file mode 100644
index 00000000..2c30bd5f
--- /dev/null
+++ b/test/intarray.awk
@@ -0,0 +1,10 @@
+BEGIN {
+ nf = split("5 |05|0x4|00| 5|-0x12| 011|-013", f, "|")
+ for (i = 1; i <= nf; i++) {
+ delete g
+ z = f[i]+0 # trigger numeric conversion
+ g[f[i]]
+ for (x in g)
+ printf "[%s]\n", x
+ }
+}