summaryrefslogtreecommitdiffstats
path: root/tests/man.test
diff options
context:
space:
mode:
authorpkoppstein <pkoppstein@gmail.com>2023-07-24 23:25:42 -0400
committerNico Williams <nico@cryptonector.com>2023-07-25 23:43:57 -0500
commit7b725378b9803a1df74054ebd3d700d9daeb2049 (patch)
treefd279b6868d12ca5b79e97989eb8439d1d7608cb /tests/man.test
parent3a1ba0c42d2deb80b3f94b7993c7096cfe33b3bb (diff)
builtin.jq: naive abs/0
manual.yml explains that the def is naive, and mentions fabs, etc.
Diffstat (limited to 'tests/man.test')
-rw-r--r--tests/man.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/man.test b/tests/man.test
index cce2edb3..682c24aa 100644
--- a/tests/man.test
+++ b/tests/man.test
@@ -188,6 +188,10 @@ null
1
-1
+map(abs)
+[-10, -1.1, -1e-1, 1000000000000000002, -1000000000000000002]
+[10,1.1,1e-1,10000000000000002,1e+18]
+
.[] | length
[[1,2], "string", {"a":2}, null, -5]
2