From 3bc2df61d7a475d19ea98e3c268df2a5bccd2a1d Mon Sep 17 00:00:00 2001 From: Mehmed Bazdar Date: Sun, 22 May 2022 21:08:05 +0200 Subject: [PATCH] Improve isCreditCard coverage to 100% --- validator_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validator_test.go b/validator_test.go index 1ebdea5..3efdbe6 100644 --- a/validator_test.go +++ b/validator_test.go @@ -12239,6 +12239,8 @@ func TestCreditCardFormatValidation(t *testing.T) { {"378282146310005", "credit_card", false}, {"4624 7482 3324 9780", "credit_card", true}, {"4624 7482 3324 9780", "credit_card", false}, + {"4624 7482 3324 978A", "credit_card", false}, + {"4624 7482 332", "credit_card", false}, } validate := New()