(t *testing.T)
| 192 | } |
| 193 | |
| 194 | func TestInput_Lines(t *testing.T) { |
| 195 | lines := New("fòô\r\nbàř\nyolo") |
| 196 | strSlic := lines.Lines() |
| 197 | if len(strSlic) != 3 { |
| 198 | t.Errorf("Length expected to be 3 but got: %d", len(strSlic)) |
| 199 | } |
| 200 | if strSlic[0] != "fòô" { |
| 201 | t.Errorf("Expected: %s but got: %s", "fòô", strSlic[0]) |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | func TestInput_Pad(t *testing.T) { |
| 206 | pad := New("Roshan") |