mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
lang: Add regression test for yamldecode bug
This commit is contained in:
parent
cd2ba6ca46
commit
80ca4db54d
@ -978,6 +978,12 @@ func TestFunctions(t *testing.T) {
|
|||||||
`yamldecode("true")`,
|
`yamldecode("true")`,
|
||||||
cty.True,
|
cty.True,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
`yamldecode("key: 0ba")`,
|
||||||
|
cty.ObjectVal(map[string]cty.Value{
|
||||||
|
"key": cty.StringVal("0ba"),
|
||||||
|
}),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
"yamlencode": {
|
"yamlencode": {
|
||||||
|
Loading…
Reference in New Issue
Block a user