diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-08-18 06:02:02 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-08-18 06:02:02 +0300 |
commit | ba65577ec4dc7ece9772b2756d634aaaa352d504 (patch) | |
tree | 0c2ac979a2b60588d85fe15202d80259d813e728 /test/arrdbg.awk | |
parent | 07d7d8846a6fb16bbf6309b84ff3b6fed8888cd2 (diff) | |
parent | 14d54162c7af9770389da382a888100dc52f9a25 (diff) | |
download | egawk-ba65577ec4dc7ece9772b2756d634aaaa352d504.tar.gz egawk-ba65577ec4dc7ece9772b2756d634aaaa352d504.tar.bz2 egawk-ba65577ec4dc7ece9772b2756d634aaaa352d504.zip |
Merge branch 'master' into feature/typed-regex
Diffstat (limited to 'test/arrdbg.awk')
-rw-r--r-- | test/arrdbg.awk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/arrdbg.awk b/test/arrdbg.awk new file mode 100644 index 00000000..951acb41 --- /dev/null +++ b/test/arrdbg.awk @@ -0,0 +1,17 @@ +function check(x, exptype, f) { + f[x] + printf "array_f subscript [%s]\n", x + printf "array_f subscript [%s]\n", x > okfile + adump(f, -1) + printf " array_func: %s_array_func\n", exptype > okfile +} + +BEGIN { + check(3.0, "cint") + check(-3, "int") + check("3.0", "str") + split(" 3", f, "|") # create a maybe_num value + check(f[1], "str") + check("0", "cint") + check("-1", "int") +} |