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