diff --git a/pkg/utils/formatting_test.go b/pkg/utils/formatting_test.go index 38e3849ae..ab9e1460c 100644 --- a/pkg/utils/formatting_test.go +++ b/pkg/utils/formatting_test.go @@ -209,6 +209,14 @@ func TestRenderDisplayStrings(t *testing.T) { columnAlignments: []Alignment{AlignRight, AlignLeft}, expected: "abc d\n e f", }, + { + input: [][]string{{"a", "", "bcd", "efg", "h"}, {"i", "", "j", "k", "l"}}, + columnAlignments: []Alignment{AlignLeft, AlignLeft, AlignRight, AlignLeft}, + expected: "a bcd efg h\ni j k l", + /* Wrong, it should really be: + expected: "a bcd efg h\ni j k l", + */ + }, { input: [][]string{{"abc", "", "d", ""}, {"e", "", "f", ""}}, columnAlignments: []Alignment{AlignRight}, // gracefully defaults unspecified columns to left-align