diff options
author | Muh Muhten <muh.muhten@gmail.com> | 2019-02-26 23:13:33 -0500 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2019-02-26 22:39:57 -0600 |
commit | 3ea0199e031e98e92670a25e4323bd711005b5db (patch) | |
tree | ade47a6e90384d9fd49316927df4357ad1598aa2 /tests | |
parent | abed751e9669ee716b04a8923413c4bc2734185d (diff) | |
download | jq-3ea0199e031e98e92670a25e4323bd711005b5db.tar.gz |
Restore cfunction arity in builtins/0
Count arguments up-front at definition/invocation instead of doing it at
bind time, which comes after generating builtins/0 since e843a4f.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/jq.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test index f75039c..af3c1a9 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1646,4 +1646,19 @@ index("") "" null +# check that dead code removal occurs after builtin it generation +builtins|length > 10 +null +true + +"-1"|IN(builtins[] / "/"|.[1]) +null +false +all(builtins[] / "/"; .[1]|tonumber >= 0) +null +true + +builtins|any(.[:1] == "_") +null +false |