summaryrefslogtreecommitdiffstats
path: root/tests/man.test
diff options
context:
space:
mode:
authorTomas Halman <thalman@redhat.com>2022-01-20 10:15:50 +0100
committerNico Williams <nico@cryptonector.com>2022-05-26 16:02:10 -0500
commitc4d39c4d22f2b12225ca1b311708f7e084ad9ff8 (patch)
tree1baa3b1df15380d0170ca16d21f9c9b9218ece92 /tests/man.test
parent174db0f93552bdb551ae1f3c5c64744df0ad8e2f (diff)
Fix iterration problem for non decimal string
When the string transformation to number failed, all following transformation failed too. This happend because status in decNumberFromString function is updated just in error case. Reusing the DEC_CONTEXT that failed before results into error even if the string is valid number.
Diffstat (limited to 'tests/man.test')
-rw-r--r--tests/man.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/man.test b/tests/man.test
index 2a49effe..1c6ff67e 100644
--- a/tests/man.test
+++ b/tests/man.test
@@ -841,3 +841,8 @@ true
{"foo": 42}
{"foo": 43}
+.[]|tonumber?
+["1", "hello", "3", 4]
+1
+3
+4