MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / TestWrapText_Long

Function TestWrapText_Long

utils_test.go:71–79  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestWrapText_Long(t *testing.T) {
72 longText := "This is a very long text that needs to be wrapped at twenty-five characters to test the wrapping functionality properly"
73 result := wrapText(longText, 25)
74
75 // Check that text was wrapped (contains newlines or is within limit)
76 if len(longText) > 25 && len(result) == len(longText) {
77 t.Error("Long text should be wrapped")
78 }
79}
80
81func TestWrapText_Empty(t *testing.T) {
82 result := wrapText("", 25)

Callers

nothing calls this directly

Calls 1

wrapTextFunction · 0.85

Tested by

no test coverage detected