diff options
author | itchyny <itchyny@cybozu.co.jp> | 2023-07-09 12:17:43 +0900 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2023-07-08 22:25:22 -0500 |
commit | cac3ea37262c3fdf77d6947b136873b12d3794ea (patch) | |
tree | d389fb806759f6d812216c70a43466390c58d98f /tests | |
parent | 88b45771bdfc3cc9e286d0bd55c653aaab885172 (diff) |
Fix string multiplication by 0 (and less than 1) to emit empty string
Diffstat (limited to 'tests')
-rw-r--r-- | tests/jq.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/jq.test b/tests/jq.test index 35cae263..193025da 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1286,7 +1286,11 @@ indices(", ") [.[] * "abc"] [-1.0, -0.5, 0.0, 0.5, 1.0, 1.5, 3.7, 10.0] -[null,null,null,"abc","abc","abc","abcabcabc","abcabcabcabcabcabcabcabcabcabc"] +[null,null,"","","abc","abc","abcabcabc","abcabcabcabcabcabcabcabcabcabc"] + +[. * (nan,-nan)] +"abc" +[null,null] [.[] / ","] ["a, bc, def, ghij, jklmn, a,b, c,d, e,f", "a,b,c,d, e,f,g,h"] |