mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-29 17:31:02 +02:00
Fixed test cases
This commit is contained in:
parent
67c8bf4a53
commit
4c83cff898
@ -173,8 +173,8 @@ func prepareStdlib(g *typeGraph) {
|
|||||||
"$objectFlatMerge": g.newSimpleFuncType(anyObjectType, "x"),
|
"$objectFlatMerge": g.newSimpleFuncType(anyObjectType, "x"),
|
||||||
|
|
||||||
// Boolean
|
// Boolean
|
||||||
|
|
||||||
"xor": g.newSimpleFuncType(boolType, "x", "y"),
|
"xor": g.newSimpleFuncType(boolType, "x", "y"),
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldContains := map[string][]placeholderID{}
|
fieldContains := map[string][]placeholderID{}
|
||||||
|
2
testdata/builtinXor.golden
vendored
2
testdata/builtinXor.golden
vendored
@ -1 +1 @@
|
|||||||
true
|
true
|
||||||
|
2
testdata/builtinXor1.golden
vendored
2
testdata/builtinXor1.golden
vendored
@ -1 +1 @@
|
|||||||
false
|
false
|
||||||
|
10
testdata/builtinXor2.golden
vendored
10
testdata/builtinXor2.golden
vendored
@ -0,0 +1,10 @@
|
|||||||
|
RUNTIME ERROR: Unexpected type string, expected boolean
|
||||||
|
-------------------------------------------------
|
||||||
|
testdata/builtinXor2:1:1-23 $
|
||||||
|
|
||||||
|
std.xor("true", false)
|
||||||
|
|
||||||
|
-------------------------------------------------
|
||||||
|
During evaluation
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user