MCPcopy Create free account
hub / github.com/gobeam/stringy / TestInput_Lines

Function TestInput_Lines

stringy_test.go:194–203  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

192}
193
194func TestInput_Lines(t *testing.T) {
195 lines := New("fòô\r\nbàř\nyolo")
196 strSlic := lines.Lines()
197 if len(strSlic) != 3 {
198 t.Errorf("Length expected to be 3 but got: %d", len(strSlic))
199 }
200 if strSlic[0] != "fòô" {
201 t.Errorf("Expected: %s but got: %s", "fòô", strSlic[0])
202 }
203}
204
205func TestInput_Pad(t *testing.T) {
206 pad := New("Roshan")

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
LinesMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…