update slice test
This commit is contained in:
parent
359f057a16
commit
d186d3a490
|
@ -592,11 +592,18 @@ func TestFunctions(t *testing.T) {
|
|||
|
||||
"slice": {
|
||||
{
|
||||
`slice(["a", "b", "c", "d"], 1, 3)`,
|
||||
// force a list type here for testing
|
||||
`slice(list("a", "b", "c", "d"), 1, 3)`,
|
||||
cty.ListVal([]cty.Value{
|
||||
cty.StringVal("b"), cty.StringVal("c"),
|
||||
}),
|
||||
},
|
||||
{
|
||||
`slice(["a", "b", 3, 4], 1, 3)`,
|
||||
cty.TupleVal([]cty.Value{
|
||||
cty.StringVal("b"), cty.NumberIntVal(3),
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
||||
"sort": {
|
||||
|
|
Loading…
Reference in New Issue