Can add and merge append to null

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 1be3b31bbc
commit c77001f969
4 changed files with 34 additions and 1 deletions
+8
View File
@@ -112,6 +112,14 @@ var addOperatorScenarios = []expressionScenario{
"D0, P[], (doc)::{a: 4}\n",
},
},
{
description: "Add to null",
subdescription: "Adding to null simply returns the rhs",
expression: `null + "cat"`,
expected: []string{
"D0, P[], (!!str)::cat\n",
},
},
}
func TestAddOperatorScenarios(t *testing.T) {