summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-10-12 13:51:41 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-12 13:51:41 -0700
commit69247e283c550b4b0e6cb75a457b49e266cede60 (patch)
treec899311fcc3932db54806a19f05741ebb9f8a79e /t
parentMerge branch 'cb/makefile-apple-clang' into maint (diff)
parentcolumn: fix parsing of the '--nl' option (diff)
downloadtgif-69247e283c550b4b0e6cb75a457b49e266cede60.tar.xz
Merge branch 'sg/column-nl' into maint
The parser for the "--nl" option of "git column" has been corrected. * sg/column-nl: column: fix parsing of the '--nl' option
Diffstat (limited to 't')
-rwxr-xr-xt/t9002-column.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t9002-column.sh b/t/t9002-column.sh
index 89983527b6..6d3dbde3fe 100755
--- a/t/t9002-column.sh
+++ b/t/t9002-column.sh
@@ -42,6 +42,24 @@ EOF
test_cmp expected actual
'
+test_expect_success '--nl' '
+ cat >expected <<\EOF &&
+oneZ
+twoZ
+threeZ
+fourZ
+fiveZ
+sixZ
+sevenZ
+eightZ
+nineZ
+tenZ
+elevenZ
+EOF
+ git column --nl="Z$LF" --mode=plain <lista >actual &&
+ test_cmp expected actual
+'
+
test_expect_success '80 columns' '
cat >expected <<\EOF &&
one two three four five six seven eight nine ten eleven