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
53 test_expect_success
'COLUMNS = 1' '
54 cat >expected <<\EOF &&
67 COLUMNS=1 git column --mode=column <lista >actual &&
68 test_cmp expected actual
71 test_expect_success
'width = 1' '
72 git column --mode=column --width=1 <lista >actual &&
73 test_cmp expected actual
79 test_expect_success
'20 columns' '
80 cat >expected <<\EOF &&
88 git column --mode=column <lista >actual &&
89 test_cmp expected actual
92 test_expect_success
'20 columns, padding 2' '
93 cat >expected <<\EOF &&
101 git column --mode=column --padding 2 <lista >actual &&
102 test_cmp expected actual
105 test_expect_success
'20 columns, indented' '
106 cat >expected <<\EOF &&
114 git column --mode=column --indent=" " <lista >actual &&
115 test_cmp expected actual
118 test_expect_success
'20 columns, row first' '
119 cat >expected <<\EOF &&
127 git column --mode=row <lista >actual &&
128 test_cmp expected actual