amended tests to remove non-related items

This commit is contained in:
asdf 2019-09-10 21:00:59 +10:00
parent 85049b8845
commit b91a4d4df3
1 changed files with 0 additions and 31 deletions

View File

@ -38,37 +38,6 @@ func Test_wrapLines_space_preservation(t *testing.T) {
}
}
func Test_wrapLines_en_dash_incorrect_wrapping(t *testing.T) {
tables := []struct {
testinput []string
expectedoutput []string
linelength int
}{
{
// a specific test from cat's phlog (gopher://baud.baby:70/0/phlog/fs20190818.txt)
// I think the character U+2013 : EN DASH characteris causing wrapping incorrectly
// but the test passes 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,
},
}
for _, table := range tables {
output := wrapLines(table.testinput, table.linelength)
if !reflect.DeepEqual(output, table.expectedoutput) {
t.Errorf("Expected %v, got %v", table.expectedoutput, output)
}
}
}
func Test_wrapLines_long_words_wrap(t *testing.T) {
tables := []struct {
testinput []string