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

Function TestInput_RemoveSpecialCharacter

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

Source from the content-addressed store, hash-verified

233}
234
235func TestInput_RemoveSpecialCharacter(t *testing.T) {
236 cleanString := New("special@#remove%%%%")
237 against := "specialremove"
238 if result := cleanString.RemoveSpecialCharacter(); result != against {
239 t.Errorf("Expected: %s but got: %s", against, result)
240 }
241}
242
243func TestInput_ReplaceFirst(t *testing.T) {
244 replaceFirst := New("Hello My name is Roshan and his name is Alis.")

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…