mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-09 23:25:33 -06:00
Merge pull request #2973 from bobtfish/length_empty_split_zero
Split of "" should be empty. Length of empty array should be 0
This commit is contained in:
commit
c56245ce34
@ -506,6 +506,12 @@ func TestInterpolateFuncLength(t *testing.T) {
|
||||
"5",
|
||||
false,
|
||||
},
|
||||
// Want length 0 if we split an empty string then compact
|
||||
{
|
||||
`${length(compact(split(",", "")))}`,
|
||||
"0",
|
||||
false,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user