added test for a specific line wrapping issue

This commit is contained in:
asdf 2019-09-06 20:18:03 +10:00
parent be34a9a809
commit a9d5651e3c
1 changed files with 13 additions and 0 deletions

View File

@ -89,6 +89,19 @@ func Test_wrapLines_doesnt_break_indents(t *testing.T) {
},
20,
},
{
//a specific test from cat's phlog that was wrapping and I'm not sure why
[]string{
" Suldusk Really cool dark folk/black metal sort of deal. The lead singer",
"is a tiny fairy of a person and she's very charming. It's the bass players",
},
[]string{
" Suldusk Really cool dark folk/black metal sort of deal. The lead singer",
"is a tiny fairy of a person and she's very charming. It's the bass players",
},
80,
},
//TODO further tests
//lines that are just spaces don't get misidentified as indents and then mangled
}