(t *testing.T)
| 361 | } |
| 362 | |
| 363 | func TestInput_FirstError(t *testing.T) { |
| 364 | defer func() { |
| 365 | if err := recover(); err == nil { |
| 366 | t.Errorf("Error expected but got none") |
| 367 | } |
| 368 | }() |
| 369 | fcn := New("4111 1111 1111 1111") |
| 370 | fcn.First(100) |
| 371 | } |
| 372 | |
| 373 | func TestInput_LastError(t *testing.T) { |
| 374 | defer func() { |