Skip to content

Commit cc45daf

Browse files
authored
Improve isCreditCard coverage to 100% (#948)
1 parent c8b98cb commit cc45daf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

validator_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12867,6 +12867,8 @@ func TestCreditCardFormatValidation(t *testing.T) {
1286712867
{"378282146310005", "credit_card", false},
1286812868
{"4624 7482 3324 9780", "credit_card", true},
1286912869
{"4624 7482 3324 9780", "credit_card", false},
12870+
{"4624 7482 3324 978A", "credit_card", false},
12871+
{"4624 7482 332", "credit_card", false},
1287012872
}
1287112873

1287212874
validate := New()

0 commit comments

Comments
 (0)