Use {a,b} instead of {b,c}

How does the alphabet even?
This commit is contained in:
Anthony Stanton 2015-09-16 11:09:34 +02:00
parent ef2b0a0b71
commit 95b2a60b29

View File

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