You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
500 B
46 lines
500 B
13 years ago
|
#!/bin/sh
|
||
|
|
||
|
test_description='git column'
|
||
|
. ./test-lib.sh
|
||
|
|
||
|
test_expect_success 'setup' '
|
||
|
cat >lista <<\EOF
|
||
|
one
|
||
|
two
|
||
|
three
|
||
|
four
|
||
|
five
|
||
|
six
|
||
|
seven
|
||
|
eight
|
||
|
nine
|
||
|
ten
|
||
|
eleven
|
||
|
EOF
|
||
|
'
|
||
|
|
||
|
test_expect_success 'never' '
|
||
|
git column --indent=Z --mode=never <lista >actual &&
|
||
|
test_cmp lista actual
|
||
|
'
|
||
|
|
||
|
test_expect_success 'always' '
|
||
|
cat >expected <<\EOF &&
|
||
|
Zone
|
||
|
Ztwo
|
||
|
Zthree
|
||
|
Zfour
|
||
|
Zfive
|
||
|
Zsix
|
||
|
Zseven
|
||
|
Zeight
|
||
|
Znine
|
||
|
Zten
|
||
|
Zeleven
|
||
|
EOF
|
||
|
git column --indent=Z --mode=plain <lista >actual &&
|
||
|
test_cmp expected actual
|
||
|
'
|
||
|
|
||
|
test_done
|