(t *testing.T)
| 371 | } |
| 372 | |
| 373 | func TestInput_LastError(t *testing.T) { |
| 374 | defer func() { |
| 375 | if err := recover(); err == nil { |
| 376 | t.Errorf("Error expected but got none") |
| 377 | } |
| 378 | }() |
| 379 | fcn := New("4111 1111 1111 1111") |
| 380 | fcn.Last(100) |
| 381 | } |
| 382 | |
| 383 | func TestInput_Last(t *testing.T) { |
| 384 | lcn := New("4111 1111 1111 1348") |