Fixed test cases

This commit is contained in:
Saloni Juneja 2023-03-28 16:13:37 +05:30 committed by Dave Cunningham
parent 67c8bf4a53
commit 4c83cff898
4 changed files with 14 additions and 4 deletions

View File

@ -173,8 +173,8 @@ func prepareStdlib(g *typeGraph) {
"$objectFlatMerge": g.newSimpleFuncType(anyObjectType, "x"),
// Boolean
"xor": g.newSimpleFuncType(boolType, "x", "y"),
"xor": g.newSimpleFuncType(boolType, "x", "y"),
}
fieldContains := map[string][]placeholderID{}

View File

@ -1 +1 @@
true
true

View File

@ -1 +1 @@
false
false

View File

@ -0,0 +1,10 @@
RUNTIME ERROR: Unexpected type string, expected boolean
-------------------------------------------------
testdata/builtinXor2:1:1-23 $
std.xor("true", false)
-------------------------------------------------
During evaluation