(t *testing.T)
| 241 | } |
| 242 | |
| 243 | func TestInput_ReplaceFirst(t *testing.T) { |
| 244 | replaceFirst := New("Hello My name is Roshan and his name is Alis.") |
| 245 | against := "Hello My nombre is Roshan and his name is Alis." |
| 246 | if result := replaceFirst.ReplaceFirst("name", "nombre"); result != against { |
| 247 | t.Errorf("Expected: %s but got: %s", against, result) |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | func TestInput_ReplaceFirstEmptyInput(t *testing.T) { |
| 252 | replaceFirst := New("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…