aboutsummaryrefslogtreecommitdiffstats
path: root/t/t9002-column.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t9002-column.sh')
-rwxr-xr-xt/t9002-column.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t9002-column.sh b/t/t9002-column.sh
index 348cc40658..d5b98e615b 100755
--- a/t/t9002-column.sh
+++ b/t/t9002-column.sh
@@ -196,4 +196,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