Minor fixes

This commit is contained in:
Mike Farah
2020-11-19 22:11:26 +11:00
parent 75044e480c
commit 9bd9468526
5 changed files with 50 additions and 9 deletions
+8
View File
@@ -29,6 +29,14 @@ var deleteOperatorScenarios = []expressionScenario{
"D0, P[], (doc)::{a: cat, b: dog}\n",
},
},
{
description: "Delete matching entries",
document: `{a: cat, b: dog, c: bat}`,
expression: `del( .[] | select(. == "*at") )`,
expected: []string{
"D0, P[], (doc)::{b: dog}\n",
},
},
}
func TestDeleteOperatorScenarios(t *testing.T) {