Add column layout skeleton and git-column
[alt-git.git] / t / t9002-column.sh
bloba7f3cd9285fce4bccb437a9d65edb2f7a8994a75
1 #!/bin/sh
3 test_description='git column'
4 . ./test-lib.sh
6 test_expect_success 'setup' '
7 cat >lista <<\EOF
8 one
9 two
10 three
11 four
12 five
13 six
14 seven
15 eight
16 nine
17 ten
18 eleven
19 EOF
22 test_expect_success 'never' '
23 git column --indent=Z --mode=never <lista >actual &&
24 test_cmp lista actual
27 test_expect_success 'always' '
28 cat >expected <<\EOF &&
29 Zone
30 Ztwo
31 Zthree
32 Zfour
33 Zfive
34 Zsix
35 Zseven
36 Zeight
37 Znine
38 Zten
39 Zeleven
40 EOF
41 git column --indent=Z --mode=plain <lista >actual &&
42 test_cmp expected actual
45 test_done