(t *testing.T)
| 136 | } |
| 137 | |
| 138 | func TestInput_Delimited(t *testing.T) { |
| 139 | str := New("Delimited case this_complicated__string@@") |
| 140 | against := "delimited.case.this.complicated.string" |
| 141 | if val := str.Delimited(".", "@", "").ToLower(); val != against { |
| 142 | t.Errorf("Expected: to be %s but got: %s", against, val) |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | func TestInput_DelimitedNoDelimeter(t *testing.T) { |
| 147 | str := New("Delimited case this_complicated__string@@") |