(t *testing.T)
| 249 | } |
| 250 | |
| 251 | func TestInput_ReplaceFirstEmptyInput(t *testing.T) { |
| 252 | replaceFirst := New("") |
| 253 | against := "" |
| 254 | if result := replaceFirst.ReplaceFirst("name", "nombre"); result != against { |
| 255 | t.Errorf("Expected: %s but got: %s", against, result) |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | func TestInput_ReplaceLast(t *testing.T) { |
| 260 | replaceLast := New("Hello My name is Roshan and his name is Alis.") |
nothing calls this directly
no test coverage detected
searching dependent graphs…