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")`,
|
||||
cty.True,
|
||||
},
|
||||
{
|
||||
`yamldecode("key: 0ba")`,
|
||||
cty.ObjectVal(map[string]cty.Value{
|
||||
"key": cty.StringVal("0ba"),
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
||||
"yamlencode": {
|
||||
|
|
Loading…
Reference in New Issue