|
|
|
@ -52,10 +52,10 @@ func Test_WrapContent_Wrapped_Line_Length(t *testing.T) {
|
|
|
|
|
"01 345 789 123456789 123456789 123456789 123456789\n",
|
|
|
|
|
[]string{
|
|
|
|
|
"01 345 789",
|
|
|
|
|
" 123456789",
|
|
|
|
|
" 123456789",
|
|
|
|
|
" 123456789",
|
|
|
|
|
" 123456789",
|
|
|
|
|
"123456789 ",
|
|
|
|
|
"123456789 ",
|
|
|
|
|
"123456789 ",
|
|
|
|
|
"123456789",
|
|
|
|
|
"",
|
|
|
|
|
},
|
|
|
|
|
args{
|
|
|
|
@ -65,14 +65,29 @@ func Test_WrapContent_Wrapped_Line_Length(t *testing.T) {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"Long line wrapped to 10 columns",
|
|
|
|
|
"Long line wrapped to 10 columns, leading spaces omitted when wrapping",
|
|
|
|
|
"0123456789 123456789 123456789 123456789 123456789\n",
|
|
|
|
|
[]string{
|
|
|
|
|
"0123456789",
|
|
|
|
|
" 123456789",
|
|
|
|
|
" 123456789",
|
|
|
|
|
" 123456789",
|
|
|
|
|
" 123456789",
|
|
|
|
|
"123456789 ",
|
|
|
|
|
"123456789 ",
|
|
|
|
|
"123456789 ",
|
|
|
|
|
"123456789",
|
|
|
|
|
"",
|
|
|
|
|
},
|
|
|
|
|
args{
|
|
|
|
|
10,
|
|
|
|
|
10,
|
|
|
|
|
false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"Intentional leading spaces aren't trimmed",
|
|
|
|
|
"01 345\n 789 123456789\n",
|
|
|
|
|
[]string{
|
|
|
|
|
"01 345",
|
|
|
|
|
" 789 ",
|
|
|
|
|
"123456789",
|
|
|
|
|
"",
|
|
|
|
|
},
|
|
|
|
|
args{
|
|
|
|
|