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

Function TestInput_Title

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

Source from the content-addressed store, hash-verified

313}
314
315func TestInput_Title(t *testing.T) {
316 str := New("this is just AN eXample")
317 against := "This Is Just An Example"
318 if val := str.Title(); val != against {
319 t.Errorf("Expected: to be %s but got: %s", against, val)
320 }
321}
322
323func TestInput_UcFirst(t *testing.T) {
324 tests := []struct {

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
TitleMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…