You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=================================================
jq 1.6-145-ga9f97e9-dirty: ./test-suite.log
=================================================
# TOTAL: 7
# PASS: 6
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: tests/jqtest
==================
which: no valgrind in (/home/flederwiesel/bin:/usr/local/bin:/usr/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/usr/local/sbin:/usr/sbin:/sbin)
Test #1: 'true' at line number 8
Test #2: 'false' at line number 12
Test #3: 'null' at line number 16
Test #4: '1' at line number 20
Test #5: '-1' at line number 25
Test #6: '{}' at line number 31
Test #7: '[]' at line number 35
Test #8: '{x: -1}' at line number 39
Test #9: '.' at line number 46
Test #10: '"Aa\r\n\t\b\f\u03bc"' at line number 52
Test #11: '.' at line number 56
Test #12: '"inter\("pol" + "ation")"' at line number 60
Test #13: '@text,@json,([1,.] | (@csv, @tsv)),@html,@uri,@sh,@base64,(@base64 | @base64d)' at line number 64
Test #14: '@base64' at line number 77
Test #15: '@base64d' at line number 81
Test #16: '@uri' at line number 85
Test #17: '@html "<b>\(.)</b>"' at line number 89
Test #18: '[.[]|tojson|fromjson]' at line number 93
Test #19: '{a: 1}' at line number 101
Test #20: '{a,b,(.d):.a,e:.b}' at line number 105
Test #21: '{"a",b,"a$\(1+1)"}' at line number 109
Test #22: '{(0):1}' at line number 114
Test #23: '{non_const:., (0):1}' at line number 118
Test #24: '.foo' at line number 125
Test #25: '.foo | .bar' at line number 129
Test #26: '.foo.bar' at line number 133
Test #27: '.foo_bar' at line number 137
Test #28: '.["foo"].bar' at line number 141
Test #29: '."foo"."bar"' at line number 145
Test #30: '[.[]|.foo?]' at line number 149
Test #31: '[.[]|.foo?.bar?]' at line number 153
Test #32: '[..]' at line number 157
Test #33: '[.[]|.[]?]' at line number 161
Test #34: '[.[]|.[1:3]?]' at line number 165
Test #35: 'try (.foo[-1] = 0) catch .' at line number 173
Test #36: 'try (.foo[-2] = 0) catch .' at line number 177
Test #37: '.[-1] = 5' at line number 181
Test #38: '.[-2] = 5' at line number 185
Test #39: '.[]' at line number 193
Test #40: '1,1' at line number 199
Test #41: '1,.' at line number 204
Test #42: '[.]' at line number 209
Test #43: '[[2]]' at line number 213
Test #44: '[{}]' at line number 217
Test #45: '[.[]]' at line number 221
Test #46: '[(.,1),((.,.[]),(2,3))]' at line number 225
Test #47: '[([5,5][]),.,.[]]' at line number 229
Test #48: '{x: (1,2)},{x:3} | .x' at line number 233
Test #49: '.[-2]' at line number 239
Test #50: '[range(0;10)]' at line number 243
Test #51: '[range(0,1;3,4)]' at line number 247
Test #52: '[range(0;10;3)]' at line number 251
Test #53: '[range(0;10;-1)]' at line number 255
Test #54: '[range(0;-5;-1)]' at line number 259
Test #55: '[range(0,1;4,5;1,2)]' at line number 263
Test #56: '[while(.<100; .*2)]' at line number 267
Test #57: '[(label $here | .[] | if .>1 then break $here else . end), "hi!"]' at line number 271
Test #58: '[(label $here | .[] | if .>1 then break $here else . end), "hi!"]' at line number 275
Test #59: '. as $foo | break $foo' at line number 280
Test #60: '[.[]|[.,1]|until(.[0] < 1; [.[0] - 1, .[1] * .[0]])|.[1]]' at line number 283
Test #61: '[label $out | foreach .[] as $item ([3, null]; if .[0] < 1 then break $out else [.[0] -1, $item] end; .[1])]' at line number 287
Test #62: '[foreach range(5) as $item (0; $item)]' at line number 291
Test #63: '[foreach .[] as [$i, $j] (0; . + $i - $j)]' at line number 295
Test #64: '[foreach .[] as {a:$a} (0; . + $a; -.)]' at line number 299
Test #65: '[limit(3; .[])]' at line number 303
Test #66: '[limit(0; error)]' at line number 307
Test #67: '[limit(1; 1, error)]' at line number 311
Test #68: '[first(range(.)), last(range(.)), nth(0; range(.)), nth(5; range(.)), try nth(-1; range(.)) catch .]' at line number 315
Test #69: 'first(1,error("foo"))' at line number 320
Test #70: '[limit(5,7; range(9))]' at line number 330
Test #71: '[nth(5,7; range(9;0;-1))]' at line number 335
Test #72: '[range(0,1,2;4,3,2;2,3)]' at line number 340
Test #73: '[range(3,5)]' at line number 345
Test #74: '[(index(",","|"), rindex(",","|")), indices(",","|")]' at line number 350
Test #75: 'join(",","/")' at line number 355
Test #76: '[.[]|join("a")]' at line number 360
Test #77: 'flatten(3,2,1)' at line number 365
Test #78: '[.[3:2], .[-5:4], .[:-2], .[-2:], .[3:3][1:], .[10:]]' at line number 376
Test #79: '[.[3:2], .[-5:4], .[:-2], .[-2:], .[3:3][1:], .[10:]]' at line number 380
Test #80: 'del(.[2:4],.[0],.[-2:])' at line number 384
Test #81: '.[2:4] = ([], ["a","b"], ["a","b","c"])' at line number 388
Test #82: 'reduce range(65540;65536;-1) as $i ([]; .[$i] = $i)|.[65536:]' at line number 400
Test #83: '1 as $x | 2 as $y | [$x,$y,$x]' at line number 408
Test #84: '[1,2,3][] as $x | [[4,5,6,7][$x]]' at line number 412
Test #85: '42 as $x | . | . | . + 432 | $x + 1' at line number 418
Test #86: '1 as $x | [$x,$x,$x as $x | $x]' at line number 422
Test #87: '[1, {c:3, d:4}] as [$a, {c:$b, b:$c}] | $a, $b, $c' at line number 426
Test #88: '. as {as: $kw, "str": $str, ("e"+"x"+"p"): $exp} | [$kw, $str, $exp]' at line number 432
Test #89: '.[] as [$a, $b] | [$b, $a]' at line number 436
Test #90: '. as $i | . as [$i] | $i' at line number 441
Test #91: '. as [$i] | . as $i | $i' at line number 445
Test #92: '. as [] | null' at line number 450
Test #93: '. as {} | null' at line number 454
Test #94: '1+1' at line number 463
Test #95: '1+1' at line number 467
Test #96: '2-1' at line number 471
Test #97: '2-(-1)' at line number 475
Test #98: '1e+0+0.001e3' at line number 479
Test #99: '.+4' at line number 483
Test #100: '.+null' at line number 487
Test #101: 'null+.' at line number 491
Test #102: '.a+.b' at line number 495
Test #103: '[1,2,3] + [.]' at line number 499
Test #104: '{"a":1} + {"b":2} + {"c":3}' at line number 503
Test #105: '"asdf" + "jkl;" + . + . + .' at line number 507
Test #106: '"\u0000\u0020\u0000" + .' at line number 511
Test #107: '42 - .' at line number 515
Test #108: '[1,2,3,4,1] - [.,3]' at line number 519
Test #109: '[10 * 20, 20 / .]' at line number 523
Test #110: '1 + 2 * 2 + 10 / 2' at line number 527
Test #111: '[16 / 4 / 2, 16 / 4 * 2, 16 - 4 - 2, 16 - 4 + 2]' at line number 531
Test #112: '25 % 7' at line number 535
Test #113: '49732 % 472' at line number 539
Test #114: '1 + tonumber + ("10" | tonumber)' at line number 543
Test #115: '[{"a":42},.object,10,.num,false,true,null,"b",[1,4]] | .[] as $x | [$x == .[]]' at line number 547
Test #116: '[.[] | length]' at line number 559
Test #117: 'utf8bytelength' at line number 563
Test #118: '[.[] | try utf8bytelength catch .]' at line number 567
Test #119: 'map(keys)' at line number 572
Test #120: '[1,2,empty,3,empty,4]' at line number 576
Test #121: 'map(add)' at line number 580
Test #122: 'map_values(.+1)' at line number 584
Test #123: 'def f: . + 1; def g: def g: . + 100; f | g | f; (f | g), g' at line number 593
Test #124: 'def f: (1000,2000); f' at line number 598
Test #125: 'def f(a;b;c;d;e;f): [a+1,b,c,d,e,f]; f(.[0];.[1];.[0];.[0];.[0];.[0])' at line number 603
Test #126: 'def f: 1; def g: f, def f: 2; def g: 3; f, def f: g; f, g; def f: 4; [f, def f: g; def g: 5; f, g]+[f,g]' at line number 607
Test #127: 'def a: 0; . | a' at line number 612
Test #128: 'def f(a;b;c;d;e;f;g;h;i;j): [j,i,h,g,f,e,d,c,b,a]; f(.[0];.[1];.[2];.[3];.[4];.[5];.[6];.[7];.[8];.[9])' at line number 617
Test #129: '([1,2] + [4,5])' at line number 621
Test #130: 'true' at line number 625
Test #131: 'null,1,null' at line number 629
Test #132: '[1,2,3]' at line number 635
Test #133: '[.[]|floor]' at line number 639
Test #134: '[.[]|sqrt]' at line number 643
Test #135: '(add / length) as $m | map((. - $m) as $d | $d * $d) | add / length | sqrt' at line number 647
Test #136: 'atan * 4 * 1000000|floor / 1000000' at line number 656
Test #137: '[(3.141592 / 2) * (range(0;20) / 20)|cos * 1000000|floor / 1000000]' at line number 660
Test #138: '[(3.141592 / 2) * (range(0;20) / 20)|sin * 1000000|floor / 1000000]' at line number 664
Test #139: 'def f(x): x | x; f([.], . + [42])' at line number 669
Test #140: 'def f: .+1; def g: f; def f: .+100; def f(a):a+.+11; [(g|f(20)), f]' at line number 677
Test #141: 'def id(x):x; 2000 as $x | def f(x):1 as $x | id([$x, x, x]); def g(x): 100 as $x | f($x,$x+x); g($x)' at line number 682
Test #142: 'def x(a;b): a as $a | b as $b | $a + $b; def y($a;$b): $a + $b; def check(a;b): [x(a;b)] == [y(a;b)]; check(.[];.[]*2)' at line number 687
Test #143: '[[20,10][1,0] as $x | def f: (100,200) as $y | def g: [$x + $y, .]; . + $x | g; f[0] | [f][0][1] | f]' at line number 693
Test #144: 'def fac: if . == 1 then 1 else . * (. - 1 | fac) end; [.[] | fac]' at line number 698
Test #145: 'reduce .[] as $x (0; . + $x)' at line number 708
Test #146: 'reduce .[] as [$i, {j:$j}] (0; . + $i - $j)' at line number 712
Test #147: 'reduce [[1,2,10], [3,4,10]][] as [$i,$j] (0; . + $i * $j)' at line number 716
Test #148: 'reduce . as $n (.; .)' at line number 721
Test #149: '. as {$a, b: [$c, {$d}]} | [$a, $c, $d]' at line number 726
Test #150: '. as {$a, $b:[$c, $d]}| [$a, $b, $c, $d]' at line number 730
Test #151: '.[] | . as {$a, b: [$c, {$d}]} ?// [$a, {$b}, $e] ?// $f | [$a, $b, $c, $d, $e, $f]' at line number 735
Test #152: '.[] | . as {a:$a} ?// {a:$a} ?// {a:$a} | $a' at line number 742
Test #153: '.[] as {a:$a} ?// {a:$a} ?// {a:$a} | $a' at line number 746
Test #154: '[[3],[4],[5],6][] | . as {a:$a} ?// {a:$a} ?// {a:$a} | $a' at line number 750
Test #155: '[[3],[4],[5],6] | .[] as {a:$a} ?// {a:$a} ?// {a:$a} | $a' at line number 754
Test #156: '.[] | . as {a:$a} ?// {a:$a} ?// $a | $a' at line number 758
Test #157: '.[] as {a:$a} ?// {a:$a} ?// $a | $a' at line number 765
Test #158: '[[3],[4],[5],6][] | . as {a:$a} ?// {a:$a} ?// $a | $a' at line number 772
Test #159: '[[3],[4],[5],6] | .[] as {a:$a} ?// {a:$a} ?// $a | $a' at line number 779
Test #160: '.[] | . as {a:$a} ?// $a ?// {a:$a} | $a' at line number 786
Test #161: '.[] as {a:$a} ?// $a ?// {a:$a} | $a' at line number 793
Test #162: '[[3],[4],[5],6][] | . as {a:$a} ?// $a ?// {a:$a} | $a' at line number 800
Test #163: '[[3],[4],[5],6] | .[] as {a:$a} ?// $a ?// {a:$a} | $a' at line number 807
Test #164: '.[] | . as $a ?// {a:$a} ?// {a:$a} | $a' at line number 814
Test #165: '.[] as $a ?// {a:$a} ?// {a:$a} | $a' at line number 821
Test #166: '[[3],[4],[5],6][] | . as $a ?// {a:$a} ?// {a:$a} | $a' at line number 828
Test #167: '[[3],[4],[5],6] | .[] as $a ?// {a:$a} ?// {a:$a} | $a' at line number 835
Test #168: '. as $dot|any($dot[];not)' at line number 842
Test #169: '. as $dot|any($dot[];not)' at line number 846
Test #170: '. as $dot|all($dot[];.)' at line number 850
Test #171: '. as $dot|all($dot[];.)' at line number 854
Test #172: 'any(true, error; .)' at line number 859
Test #173: 'all(false, error; .)' at line number 863
Test #174: 'any(not)' at line number 867
Test #175: 'all(not)' at line number 871
Test #176: 'any(not)' at line number 875
Test #177: 'all(not)' at line number 879
Test #178: '[any,all]' at line number 883
Test #179: '[any,all]' at line number 887
Test #180: '[any,all]' at line number 891
Test #181: '[any,all]' at line number 895
Test #182: '[any,all]' at line number 899
Test #183: 'path(.foo[0,1])' at line number 907
Test #184: 'path(.[] | select(.>3))' at line number 912
Test #185: 'path(.)' at line number 916
Test #186: 'try path(.a | map(select(.b == 0))) catch .' at line number 920
Test #187: 'try path(.a | map(select(.b == 0)) | .[0]) catch .' at line number 924
Test #188: 'try path(.a | map(select(.b == 0)) | .c) catch .' at line number 928
Test #189: 'try path(.a | map(select(.b == 0)) | .[]) catch .' at line number 932
Test #190: 'path(.a[path(.b)[0]])' at line number 936
Test #191: '[paths]' at line number 940
Test #192: '[leaf_paths]' at line number 944
Test #193: '["foo",1] as $p | getpath($p), setpath($p; 20), delpaths([$p])' at line number 948
Test #194: 'map(getpath([2])), map(setpath([2]; 42)), map(delpaths([[2]]))' at line number 954
Test #195: 'map(delpaths([[0,"foo"]]))' at line number 960
Test #196: '["foo",1] as $p | getpath($p), setpath($p; 20), delpaths([$p])' at line number 964
Test #197: 'delpaths([[-200]])' at line number 970
Test #198: 'try delpaths(0) catch .' at line number 974
Test #199: 'del(.), del(empty), del((.foo,.bar,.baz) | .[2,3,0]), del(.foo[0], .bar[0], .foo, .baz.bar[0].x)' at line number 978
Test #200: 'del(.[1], .[-6], .[2], .[-3:9])' at line number 985
Test #201: '.message = "goodbye"' at line number 992
Test #202: '.foo = .bar' at line number 996
Test #203: '.foo |= .+1' at line number 1000
Test #204: '.[] += 2, .[] *= 2, .[] -= 2, .[] /= 2, .[] %=2' at line number 1004
Test #205: '[.[] % 7]' at line number 1012
Test #206: '.foo += .foo' at line number 1016
Test #207: '.[0].a |= {"old":., "new":(.+1)}' at line number 1020
Test #208: 'def inc(x): x |= .+1; inc(.[].a)' at line number 1024
Test #209: '.[] | try (getpath(["a",0,"b"]) |= 5) catch .' at line number 1029
Test #210: '.[2][3] = 1' at line number 1040
Test #211: '.foo[2].bar = 1' at line number 1044
Test #212: 'try ((map(select(.a == 1))[].b) = 10) catch .' at line number 1048
Test #213: 'try ((map(select(.a == 1))[].a) |= .+1) catch .' at line number 1052
Test #214: 'def x: .[1,2]; x=10' at line number 1056
Test #215: 'try (def x: reverse; x=10) catch .' at line number 1060
Test #216: '.[] = 1' at line number 1064
Test #217: '[.[] | if .foo then "yep" else "nope" end]' at line number 1072
Test #218: '[.[] | if .baz then "strange" elif .foo then "yep" else "nope" end]' at line number 1076
Test #219: '[if 1,null,2 then 3 else 4 end]' at line number 1080
Test #220: '[if empty then 3 else 4 end]' at line number 1084
Test #221: '[if 1 then 3,4 else 5 end]' at line number 1088
Test #222: '[if null then 3 else 5,6 end]' at line number 1092
Test #223: '[if true then 3 end]' at line number 1096
Test #224: '[if false then 3 end]' at line number 1100
Test #225: '[if false then 3 else . end]' at line number 1104
Test #226: '[.[] | [.foo[] // .bar]]' at line number 1109
Test #227: '.[] //= .[0]' at line number 1113
Test #228: '.[] | [.[0] and .[1], .[0] or .[1]]' at line number 1117
Test #229: '[.[] | not]' at line number 1124
Test #230: '[10 > 0, 10 > 10, 10 > 20, 10 < 0, 10 < 10, 10 < 20]' at line number 1129
Test #231: '[10 >= 0, 10 >= 10, 10 >= 20, 10 <= 0, 10 <= 10, 10 <= 20]' at line number 1133
Test #232: '[ 10 == 10, 10 != 10, 10 != 11, 10 == 11]' at line number 1138
Test #233: '["hello" == "hello", "hello" != "hello", "hello" == "world", "hello" != "world" ]' at line number 1142
Test #234: '[[1,2,3] == [1,2,3], [1,2,3] != [1,2,3], [1,2,3] == [4,5,6], [1,2,3] != [4,5,6]]' at line number 1146
Test #235: '[{"foo":42} == {"foo":42},{"foo":42} != {"foo":42}, {"foo":42} != {"bar":42}, {"foo":42} == {"bar":42}]' at line number 1150
Test #236: '[{"foo":[1,2,{"bar":18},"world"]} == {"foo":[1,2,{"bar":18},"world"]},{"foo":[1,2,{"bar":18},"world"]} == {"foo":[1,2,{"bar":19},"world"]}]' at line number 1155
Test #237: '[("foo" | contains("foo")), ("foobar" | contains("foo")), ("foo" | contains("foobar"))]' at line number 1160
Test #238: '[contains(""), contains("\u0000")]' at line number 1165
Test #239: '[contains(""), contains("a"), contains("ab"), contains("c"), contains("d")]' at line number 1169
Test #240: '[contains("cd"), contains("b\u0000"), contains("ab\u0000")]' at line number 1173
Test #241: '[contains("b\u0000c"), contains("b\u0000cd"), contains("b\u0000cd")]' at line number 1177
Test #242: '[contains("@"), contains("\u0000@"), contains("\u0000what")]' at line number 1181
Test #243: '[.[]|try if . == 0 then error("foo") elif . == 1 then .a elif . == 2 then empty else . end catch .]' at line number 1187
Test #244: '[.[]|(.a, .a)?]' at line number 1191
Test #245: '[[.[]|[.a,.a]]?]' at line number 1195
Test #246: 'try error("\($__loc__)") catch .' at line number 1199
Test #247: '[.[]|startswith("foo")]' at line number 1204
Test #248: '[.[]|endswith("foo")]' at line number 1208
Test #249: '[.[] | split(", ")]' at line number 1212
Test #250: 'split("")' at line number 1216
Test #251: '[.[]|ltrimstr("foo")]' at line number 1220
Test #252: '[.[]|rtrimstr("foo")]' at line number 1224
Test #253: '[(index(","), rindex(",")), indices(",")]' at line number 1228
Test #254: 'indices(1)' at line number 1232
Test #255: 'indices([1,2])' at line number 1236
Test #256: 'indices([1,2])' at line number 1240
Test #257: 'indices(", ")' at line number 1244
Test #258: '[.[]|split(",")]' at line number 1248
Test #259: '[.[]|split(", ")]' at line number 1252
Test #260: '[.[] * 3]' at line number 1256
Test #261: '[.[] / ","]' at line number 1260
Test #262: '[.[] / ", "]' at line number 1264
Test #263: 'map(.[1] as $needle | .[0] | contains($needle))' at line number 1268
Test #264: 'map(.[1] as $needle | .[0] | contains($needle))' at line number 1272
Test #265: '[({foo: 12, bar:13} | contains({foo: 12})), ({foo: 12} | contains({})), ({foo: 12, bar:13} | contains({baz:14}))]' at line number 1276
Test #266: '{foo: {baz: 12, blap: {bar: 13}}, bar: 14} | contains({bar: 14, foo: {blap: {}}})' at line number 1280
Test #267: '{foo: {baz: 12, blap: {bar: 13}}, bar: 14} | contains({bar: 14, foo: {blap: {bar: 14}}})' at line number 1284
Test #268: 'sort' at line number 1288
Test #269: '(sort_by(.b) | sort_by(.a)), sort_by(.a, .b), sort_by(.b, .c), group_by(.b), group_by(.a + .b - .c == 2)' at line number 1292
Test #270: 'unique' at line number 1300
Test #271: 'unique' at line number 1304
Test #272: '[min, max, min_by(.[1]), max_by(.[1]), min_by(.[2]), max_by(.[2])]' at line number 1308
Test #273: '[min,max,min_by(.),max_by(.)]' at line number 1312
Test #274: '.foo[.baz]' at line number 1316
Test #275: '.[] | .error = "no, it's OK"' at line number 1320
Test #276: '[{a:1}] | .[] | .a=999' at line number 1324
Test #277: 'to_entries' at line number 1328
Test #278: 'from_entries' at line number 1332
Test #279: 'with_entries(.key |= "KEY_" + .)' at line number 1336
Test #280: 'map(has("foo"))' at line number 1340
Test #281: 'map(has(2))' at line number 1344
Test #282: 'keys' at line number 1348
Test #283: '[][.]' at line number 1352
Test #284: 'map([1,2][0:.])' at line number 1356
Test #285: '{"k": {"a": 1, "b": 2}} * .' at line number 1362
Test #286: '{"k": {"a": 1, "b": 2}, "hello": {"x": 1}} * .' at line number 1366
Test #287: '{"k": {"a": 1, "b": 2}, "hello": 1} * .' at line number 1370
Test #288: '{"a": {"b": 1}, "c": {"d": 2}, "e": 5} * .' at line number 1374
Test #289: '[.[]|arrays]' at line number 1378
Test #290: '[.[]|objects]' at line number 1382
Test #291: '[.[]|iterables]' at line number 1386
Test #292: '[.[]|scalars]' at line number 1390
Test #293: '[.[]|values]' at line number 1394
Test #294: '[.[]|booleans]' at line number 1398
Test #295: '[.[]|nulls]' at line number 1402
Test #296: 'flatten' at line number 1406
Test #297: 'flatten(0)' at line number 1410
Test #298: 'flatten(2)' at line number 1414
Test #299: 'flatten(2)' at line number 1418
Test #300: 'try flatten(-1) catch .' at line number 1422
Test #301: 'transpose' at line number 1426
Test #302: 'ascii_upcase' at line number 1430
Test #303: 'bsearch(0,2,4)' at line number 1434
Test #304: 'strftime("%Y-%m-%dT%H:%M:%SZ")' at line number 1442
Test #305: 'strftime("%A, %B %d, %Y")' at line number 1446
Test #306: 'gmtime' at line number 1450
Test #307: 'import "a" as foo; import "b" as bar; def fooa: foo::a; [fooa, bar::a, bar::b, foo::a]' at line number 1455
Test #308: 'import "c" as foo; [foo::a, foo::c]' at line number 1459
Test #309: 'include "c"; [a, c]' at line number 1463
Test #310: 'import "data" as $e; import "data" as $d; [$d[].this,$e[].that,$d::d[].this,$e::e[].that]|join(";")' at line number 1467
Test #311: 'include "shadow1"; e' at line number 1471
Test #312: 'include "shadow1"; include "shadow2"; e' at line number 1475
Test #313: 'import "shadow1" as f; import "shadow2" as f; import "shadow1" as e; [e::e, f::e]' at line number 1479
Test #314: 'module (.+1); 0' at line number 1484
Test #315: 'include "a" (.+1); 0' at line number 1488
Test #316: 'include "a" []; 0' at line number 1492
Test #317: 'include "\ "; 0' at line number 1496
Test #318: 'include "\(a)"; 0' at line number 1500
Test #319: 'modulemeta' at line number 1503
Test #320: 'modulemeta | .deps |= length' at line number 1507
Test #321: 'import "syntaxerror" as e; .' at line number 1512
Test #322: '%::wat' at line number 1516
Test #323: 'import "test_bind_order" as check; check::check' at line number 1519
Test #324: 'try -. catch .' at line number 1523
Test #325: 'join(",")' at line number 1527
Test #326: '.[] | join(",")' at line number 1531
Test #327: '.[] | join(",")' at line number 1538
Test #328: 'try join(",") catch .' at line number 1543
Test #329: 'try join(",") catch .' at line number 1547
Test #330: '{if:0,and:1,or:2,then:3,else:4,elif:5,end:6,as:7,def:8,reduce:9,foreach:10,try:11,catch:12,label:13,import:14,include:15,module:16}' at line number 1551
Test #331: 'try (1/.) catch .' at line number 1555
Test #332: 'try (1%.) catch .' at line number 1559
Test #333: '1/0' at line number 1564
Test #334: '[range(-52;52;1)] as $powers | [$powers[]|pow(2;.)|log2] == $powers' at line number 1568
*** Expected true, but got false for test at line number 1570: [range(-52;52;1)] as $powers | [$powers[]|pow(2;.)|log2] == $powers
Test #335: '[range(-99/2;99/2;1)] as $orig | [$orig[]|pow(2;.)|log2] as $back | ($orig|keys)[]|. as $k | (($orig|.[$k])-($back|.[$k]))|if . < 0 then . * -1 else . end|select(.>.00005)' at line number 1572
Test #336: '}' at line number 1576
Test #337: '(.[{}] = 0)?' at line number 1579
Test #338: 'INDEX(range(5)|[., "foo\(.)"]; .[0])' at line number 1582
Test #339: 'JOIN({"0":[0,"abc"],"1":[1,"bcd"],"2":[2,"def"],"3":[3,"efg"],"4":[4,"fgh"]}; .[0]|tostring)' at line number 1586
Test #340: 'range(5;10)|IN(range(10))' at line number 1590
Test #341: 'range(5;13)|IN(range(0;10;3))' at line number 1598
Test #342: 'range(10;12)|IN(range(10))' at line number 1609
Test #343: 'IN(range(10;20); range(10))' at line number 1614
Test #344: 'IN(range(5;20); range(10))' at line number 1618
Test #345: '(.a as $x | .b) = "b"' at line number 1623
Test #346: '(.. | select(type == "object" and has("b") and (.b | type) == "array")|.b) |= .[0]' at line number 1628
Test #347: 'isempty(empty)' at line number 1632
Test #348: 'isempty(range(3))' at line number 1636
Test #349: 'isempty(1,error("foo"))' at line number 1640
Test #350: 'index("")' at line number 1645
Test #351: 'builtins|length > 10' at line number 1650
Test #352: '"-1"|IN(builtins[] / "/"|.[1])' at line number 1654
Test #353: 'all(builtins[] / "/"; .[1]|tonumber >= 0)' at line number 1658
Test #354: 'builtins|any(.[:1] == "_")' at line number 1662
Test #355: 'map(. == 1)' at line number 1683
Test #356: '.[0] | tostring' at line number 1689
Test #357: '.x | tojson' at line number 1693
Test #358: '13911860366432393 == 13911860366432392' at line number 1697
Test #359: '. - 10' at line number 1704
Test #360: '.[0] - 10' at line number 1708
Test #361: '.x - 10' at line number 1712
Test #362: '. |= try . catch .' at line number 1716
361 of 362 tests passed (0 malformed, 0 skipped)
FAIL tests/jqtest (exit status: 1)
The text was updated successfully, but these errors were encountered:
Describe the bug
make check
fails with the following console output (shortened):To Reproduce
Expected behavior
All tests pass.
Environment (please complete the following information):
CYGWIN_NT-6.1 localhost 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 Cygwin
gcc (GCC) 10.2.0
bison (GNU Bison) 3.0.4
flex 2.6.4
git: master
git: jq-1.6
Additional context
The text was updated successfully, but these errors were encountered: