3 test_description
='git column'
6 test_expect_success
'setup' '
22 test_expect_success
'never' '
23 git column --indent=Z --mode=never <lista >actual &&
27 test_expect_success
'always' '
28 cat >expected <<\EOF &&
41 git column --indent=Z --mode=plain <lista >actual &&
42 test_cmp expected actual
45 test_expect_success
'--nl' '
46 cat >expected <<\EOF &&
59 git column --nl="Z$LF" --mode=plain <lista >actual &&
60 test_cmp expected actual
63 test_expect_success
'80 columns' '
64 cat >expected <<\EOF &&
65 one two three four five six seven eight nine ten eleven
67 COLUMNS=80 git column --mode=column <lista >actual &&
68 test_cmp expected actual
85 test_expect_success COLUMNS_CAN_BE_1
'COLUMNS = 1' '
86 COLUMNS=1 git column --mode=column <lista >actual &&
87 test_cmp expected actual
90 test_expect_success
'width = 1' '
91 git column --mode=column --width=1 <lista >actual &&
92 test_cmp expected actual
98 test_expect_success
'20 columns' '
99 cat >expected <<\EOF &&
107 git column --mode=column <lista >actual &&
108 test_cmp expected actual
111 test_expect_success
'20 columns, nodense' '
112 cat >expected <<\EOF &&
120 git column --mode=column,nodense < lista > actual &&
121 test_cmp expected actual
124 test_expect_success
'20 columns, dense' '
125 cat >expected <<\EOF &&
131 git column --mode=column,dense < lista > actual &&
132 test_cmp expected actual
135 test_expect_success
'20 columns, padding 2' '
136 cat >expected <<\EOF &&
144 git column --mode=column --padding 2 <lista >actual &&
145 test_cmp expected actual
148 test_expect_success
'20 columns, indented' '
149 cat >expected <<\EOF &&
157 git column --mode=column --indent=" " <lista >actual &&
158 test_cmp expected actual
161 test_expect_success
'20 columns, row first' '
162 cat >expected <<\EOF &&
170 git column --mode=row <lista >actual &&
171 test_cmp expected actual
174 test_expect_success
'20 columns, row first, nodense' '
175 cat >expected <<\EOF &&
183 git column --mode=row,nodense <lista >actual &&
184 test_cmp expected actual
187 test_expect_success
'20 columns, row first, dense' '
188 cat >expected <<\EOF &&
194 git column --mode=row,dense <lista >actual &&
195 test_cmp expected actual