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:
Paul Hinze 2015-10-29 14:58:36 -05:00
commit c56245ce34

View File

@ -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,
},
},
})
}