diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-29 20:32:29 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-29 20:32:29 +0200 |
commit | bf847b770dec8fd2e364a56abc8618987b9de917 (patch) | |
tree | a8c8e46deb732cc4f7dea3f1dc224022f71cf1ff /test | |
parent | 295eef206ed65daa9801fc72875b34994b23ca01 (diff) | |
download | egawk-bf847b770dec8fd2e364a56abc8618987b9de917.tar.gz egawk-bf847b770dec8fd2e364a56abc8618987b9de917.tar.bz2 egawk-bf847b770dec8fd2e364a56abc8618987b9de917.zip |
Add regex value support to API. Update rwarr extension and test.
Diffstat (limited to 'test')
-rw-r--r-- | test/ChangeLog | 5 | ||||
-rw-r--r-- | test/rwarray.awk | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 40988c56..fa12aefc 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +2016-11-29 Arnold D. Robbins <arnold@skeeve.com> + + * rwarray.awk: Add a typed regex into the array before + writing it out and reading it back. + 2016-11-21 Arnold D. Robbins <arnold@skeeve.com> * Makefile.am (EXTRA_DIST): Add valgrind.awk to the list. diff --git a/test/rwarray.awk b/test/rwarray.awk index 0cb214ee..83c3ccdd 100644 --- a/test/rwarray.awk +++ b/test/rwarray.awk @@ -4,6 +4,8 @@ BEGIN { while ((getline word) > 0) dict[word] = word word + dict["/typed-regex/"] = @/search me/ + n = asorti(dict, dictindices) for (i = 1; i <= n; i++) printf("dict[%s] = %s\n", dictindices[i], dict[dictindices[i]]) > "orig.out" @@ -12,7 +14,6 @@ BEGIN { ret = writea("orig.bin", dict) printf "writea() returned %d, expecting 1\n", ret - ret = reada("orig.bin", dict) printf "reada() returned %d, expecting 1\n", ret |