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 '80 columns' '
46 cat >expected <<\EOF &&
47 one two three four five six seven eight nine ten eleven
49 COLUMNS=80 git column --mode=column <lista >actual &&
50 test_cmp expected actual
67 test_expect_success COLUMNS_CAN_BE_1 'COLUMNS = 1' '
68 COLUMNS=1 git column --mode=column <lista >actual &&
69 test_cmp expected actual
72 test_expect_success 'width = 1' '
73 git column --mode=column --width=1 <lista >actual &&
74 test_cmp expected actual
80 test_expect_success '20 columns' '
81 cat >expected <<\EOF &&
89 git column --mode=column <lista >actual &&
90 test_cmp expected actual
93 test_expect_success '20 columns, nodense' '
94 cat >expected <<\EOF &&
102 git column --mode=column,nodense < lista > actual &&
103 test_cmp expected actual
106 test_expect_success '20 columns, dense' '
107 cat >expected <<\EOF &&
113 git column --mode=column,dense < lista > actual &&
114 test_cmp expected actual
117 test_expect_success '20 columns, padding 2' '
118 cat >expected <<\EOF &&
126 git column --mode=column --padding 2 <lista >actual &&
127 test_cmp expected actual
130 test_expect_success '20 columns, indented' '
131 cat >expected <<\EOF &&
139 git column --mode=column --indent=" " <lista >actual &&
140 test_cmp expected actual
143 test_expect_success '20 columns, row first' '
144 cat >expected <<\EOF &&
152 git column --mode=row <lista >actual &&
153 test_cmp expected actual
156 test_expect_success '20 columns, row first, nodense' '
157 cat >expected <<\EOF &&
165 git column --mode=row,nodense <lista >actual &&
166 test_cmp expected actual
169 test_expect_success '20 columns, row first, dense' '
170 cat >expected <<\EOF &&
176 git column --mode=row,dense <lista >actual &&
177 test_cmp expected actual