diff options
Diffstat (limited to 't/t9002-column.sh')
| -rwxr-xr-x | t/t9002-column.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t9002-column.sh b/t/t9002-column.sh index 6d3dbde3fe..7353815c11 100755 --- a/t/t9002-column.sh +++ b/t/t9002-column.sh @@ -195,4 +195,15 @@ EOF test_cmp expected actual ' +test_expect_success 'padding must be non-negative' ' + cat >input <<\EOF && +1 2 3 4 5 6 +EOF + cat >expected <<\EOF && +fatal: --padding must be non-negative +EOF + test_must_fail git column --mode=column --padding=-1 <input >actual 2>&1 && + test_cmp expected actual +' + test_done |
