Equals now only compares scalars

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 3c466dc66e
commit f92a42e4f8
2 changed files with 11 additions and 1 deletions
+8
View File
@@ -14,6 +14,14 @@ var equalsOperatorScenarios = []expressionScenario{
"D0, P[], (!!bool)::false\n",
},
},
{
skipDoc: true,
document: "{a: { b: {things: \"\"}, f: [1], g: [] }}",
expression: ".. | select(. == \"\")",
expected: []string{
"D0, P[a b things], (!!str)::\"\"\n",
},
},
{
description: "Match string",
document: `[cat,goat,dog]`,