(t *testing.T)
| 353 | } |
| 354 | |
| 355 | func TestInput_First(t *testing.T) { |
| 356 | fcn := New("4111 1111 1111 1111") |
| 357 | against := "4111" |
| 358 | if first := fcn.First(4); first != against { |
| 359 | t.Errorf("Expected: to be %s but got: %s", against, first) |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | func TestInput_FirstError(t *testing.T) { |
| 364 | defer func() { |