aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-03-30 10:20:17 +0300
committerArnold D. Robbins <arnold@skeeve.com>2022-03-30 10:20:17 +0300
commit7419129f87d8c2efaca2a19e1322df431bc9bcbc (patch)
tree142830d069bf161705bbdeff13fc931d38ceb9de
parent656b5bbec59a3094ae13f3bdac7ae2ef1e2fb5e9 (diff)
downloadegawk-7419129f87d8c2efaca2a19e1322df431bc9bcbc.tar.gz
egawk-7419129f87d8c2efaca2a19e1322df431bc9bcbc.tar.bz2
egawk-7419129f87d8c2efaca2a19e1322df431bc9bcbc.zip
Improve delarprm2 test.
-rw-r--r--test/ChangeLog4
-rw-r--r--test/delarpm2.awk7
-rw-r--r--test/delarpm2.ok4
3 files changed, 12 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 27745de9..fa9f9951 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,7 @@
+2022-03-30 Arnold D. Robbins <arnold@skeeve.com>
+
+ * delarprm2.awk, delarprm2.ok: Changes to make test more helpful.
+
2022-03-27 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (EXTRA_DIST): indirectcall3, new test.
diff --git a/test/delarpm2.awk b/test/delarpm2.awk
index ad0ed3df..5454ac3f 100644
--- a/test/delarpm2.awk
+++ b/test/delarpm2.awk
@@ -49,8 +49,13 @@
BEGIN {
clear_array(table)
foo(table)
+ # 3/2022: This was the original. Use of 'k' in the print was
+ # undoubtedly a typo but it helped find a bug, so let's
+ # make it for real
+ # for (key in table)
+ # print key, table[k]
for (key in table)
- print key, table[k]
+ print key, table[key], "<" table[k] ">"
clear_array(table)
exit(0)
}
diff --git a/test/delarpm2.ok b/test/delarpm2.ok
index bea5b8a4..2136aa4e 100644
--- a/test/delarpm2.ok
+++ b/test/delarpm2.ok
@@ -1,2 +1,2 @@
-1
-2
+1 one <>
+2 two <>