Skip to content

Commit

Permalink
Improve isCreditCard coverage to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigaxel committed May 22, 2022
1 parent 9e2ea40 commit 3bc2df6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3bc2df6

Please sign in to comment.