diff options
Diffstat (limited to 'test/rwarray.awk')
-rw-r--r-- | test/rwarray.awk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rwarray.awk b/test/rwarray.awk index 70809b64..86a4b589 100644 --- a/test/rwarray.awk +++ b/test/rwarray.awk @@ -7,6 +7,10 @@ BEGIN { re_sub = "/typed-regex/" dict[re_sub] = @/search me/ + strnum_sub = "strnum-sub" + split("-2.4", f) + dict[strnum_sub] = f[1] + n = asorti(dict, dictindices) for (i = 1; i <= n; i++) printf("dict[%s] = %s\n", dictindices[i], dict[dictindices[i]]) > "orig.out" @@ -43,4 +47,8 @@ BEGIN { if (typeof(dict[re_sub]) != "regexp") printf("dict[\"%s\"] should be regexp, is %s\n", re_sub, typeof(dict[re_sub])); + + if (typeof(dict[strnum_sub]) != "strnum") + printf("dict[\"%s\"] should be strnum, is %s\n", + strnum_sub, typeof(dict[strnum_sub])); } |