aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/asortbool.ok6
-rw-r--r--test/rwarray.awk8
3 files changed, 12 insertions, 7 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index b3574856..6ae679e5 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-28 Arnold D. Robbins <arnold@skeeve.com>
+
+ * asortbool.ok: Revise after code changes.
+ * rwarray.awk: Ditto.
+
2021-04-14 Arnold D. Robbins <arnold@skeeve.com>
* noeffect.awk: Add more test cases. Thanks to Wolfgang Laun
diff --git a/test/asortbool.ok b/test/asortbool.ok
index de08a770..623e417a 100644
--- a/test/asortbool.ok
+++ b/test/asortbool.ok
@@ -1,6 +1,6 @@
-1, bool: FALSE
-2, bool: TRUE
-3, number: -45
+1, number: -45
+2, number|bool: 0
+3, number|bool: 1
4, number: 45
5, string: foo
6, array: 47
diff --git a/test/rwarray.awk b/test/rwarray.awk
index 831f17c3..b868fa45 100644
--- a/test/rwarray.awk
+++ b/test/rwarray.awk
@@ -55,11 +55,11 @@ BEGIN {
printf("dict[\"%s\"] should be strnum, is %s\n",
strnum_sub, typeof(dict[strnum_sub]));
- if (typeof(dict[bool_sub]) != "bool")
- printf("dict[\"%s\"] should be bool, is %s\n",
+ if (typeof(dict[bool_sub]) != "number|bool")
+ printf("dict[\"%s\"] should be number|bool, is %s\n",
bool_sub, typeof(dict[bool_sub]));
- if ((dict[bool_sub] "") != "TRUE")
- printf("dict[\"%s\"] should be TRUE, is %s\n",
+ if ((dict[bool_sub] "") != "1")
+ printf("dict[\"%s\"] should be 1, is %s\n",
bool_sub, dict[bool_sub]);
}