Improve isCreditCard coverage to 100%

pull/948/head
Mehmed Bazdar 3 years ago
parent 9e2ea40380
commit 3bc2df61d7
  1. 2
      validator_test.go

@ -12239,6 +12239,8 @@ func TestCreditCardFormatValidation(t *testing.T) {
{"378282146310005", "credit_card", false}, {"378282146310005", "credit_card", false},
{"4624 7482 3324 9780", "credit_card", true}, {"4624 7482 3324 9780", "credit_card", true},
{"4624 7482 3324 9780", "credit_card", false}, {"4624 7482 3324 9780", "credit_card", false},
{"4624 7482 3324 978A", "credit_card", false},
{"4624 7482 332", "credit_card", false},
} }
validate := New() validate := New()

Loading…
Cancel
Save