lang: Add regression test for yamldecode bug

This commit is contained in:
Alisdair McDiarmid 2020-06-17 13:05:14 -04:00
parent cd2ba6ca46
commit 80ca4db54d
1 changed files with 6 additions and 0 deletions

View File

@ -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": {