(t *testing.T)
| 22 | } |
| 23 | |
| 24 | func TestInput_EmptyBetween(t *testing.T) { |
| 25 | sm := New("This is example.") |
| 26 | val := sm.Between("", "").ToUpper() |
| 27 | if val != "THIS IS EXAMPLE." { |
| 28 | t.Errorf("Expected: %s but got: %s", "THIS IS EXAMPLE.", val) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func TestInput_EmptyNoMatchBetween(t *testing.T) { |
| 33 | sm := New("This is example.") |