From a9d5651e3c06187cbc8efa6f41fb2816b690683b Mon Sep 17 00:00:00 2001 From: asdf Date: Fri, 6 Sep 2019 20:18:03 +1000 Subject: [PATCH] added test for a specific line wrapping issue --- cui/cui_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cui/cui_test.go b/cui/cui_test.go index dc719ae..f5c5294 100644 --- a/cui/cui_test.go +++ b/cui/cui_test.go @@ -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 }