Remove scalars_or_empty
This commit is contained in:
1 parent
36c250a03d
commit
6a0bdf6063
2 files changed
+1
-2
No files matched your search
+1
-1
@@ -155,7 +155,7 @@ cmp $d/out $d/expected
|
||||
|
||||
## If we add an option to stream to the `import ... as $symbol;` directive
|
||||
## then we can move these tests into tests/all.test.
|
||||
$VALGRIND $Q $JQ -c '. as $d|path(..) as $p|$d|getpath($p)|scalars_or_empty|[$p,.]' < "$JQTESTDIR/torture/input0.json" > $d/out0
|
||||
$VALGRIND $Q $JQ -c '. as $d|path(..) as $p|$d|getpath($p)|select((type|. != "array" and . != "object") or length==0)|[$p,.]' < "$JQTESTDIR/torture/input0.json" > $d/out0
|
||||
$VALGRIND $Q $JQ --stream -c '.|select(length==2)' < "$JQTESTDIR/torture/input0.json" > $d/out1
|
||||
diff $d/out0 $d/out1
|
||||
|
||||
|
||||
Reference in new issue
Block a user