Skip to content

Commit

Permalink
Improve isCreditCard coverage to 100% (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigaxel committed May 21, 2023
1 parent c8b98cb commit cc45daf
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 @@ -12867,6 +12867,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 cc45daf

Please sign in to comment.