aboutsummaryrefslogtreecommitdiffstats
path: root/test/intarray.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-07-04 05:41:05 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-07-04 05:41:05 +0300
commit414cd1eccff2d6d6415e1f65ac2e51e7c1b33890 (patch)
treeec23aa620134a1c949840c1c9e3294ba89a83a43 /test/intarray.awk
parent093f27aa0d53494c257cf16a57b01ad43f70cdff (diff)
parentff4e0706c5ee5dffd69168ebd0ff5f53e474d048 (diff)
downloadegawk-414cd1eccff2d6d6415e1f65ac2e51e7c1b33890.tar.gz
egawk-414cd1eccff2d6d6415e1f65ac2e51e7c1b33890.tar.bz2
egawk-414cd1eccff2d6d6415e1f65ac2e51e7c1b33890.zip
Merge branch 'master' into feature/cmake
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
+ }
+}