mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-11 08:05:33 -06:00
Use {a,b} instead of {b,c}
How does the alphabet even?
This commit is contained in:
parent
ef2b0a0b71
commit
95b2a60b29
@ -17,15 +17,15 @@ func TestInterpolateFuncCompact(t *testing.T) {
|
||||
Cases: []testFunctionCase{
|
||||
// empty string within array
|
||||
{
|
||||
`${compact(split(",", "b,,c"))}`,
|
||||
NewStringList([]string{"b", "c"}).String(),
|
||||
`${compact(split(",", "a,,b"))}`,
|
||||
NewStringList([]string{"a", "b"}).String(),
|
||||
false,
|
||||
},
|
||||
|
||||
// empty string at the end of array
|
||||
{
|
||||
`${compact(split(",", "b,c,"))}`,
|
||||
NewStringList([]string{"b", "c"}).String(),
|
||||
`${compact(split(",", "a,b,"))}`,
|
||||
NewStringList([]string{"a", "b"}).String(),
|
||||
false,
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user