1
0
Fork 0
Browse Source

Add a test about split an empty string

main v0.2.0
Daniele Tricoli 4 months ago
parent
commit
bf3d28cb69
  1. 9
      utils/text_test.go

9
utils/text_test.go

@ -57,3 +57,12 @@ sunt in culpa qui officia deserunt mollit anim id est laborum.FOOTER TEXT`})
SplitTextAtChunk(text, 500, "FOOTER TEXT"),
[]string{text + "FOOTER TEXT"})
}
func TestSplitTestAtChunkEmpty(t *testing.T) {
text := ""
assert.Equal(
t,
SplitTextAtChunk(text, 300, ""),
[]string{""})
}

Loading…
Cancel
Save