projects
/
Business-CreditCard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Best-effort cardtype() when only the first two digits are available (identify 60xxxx...
[Business-CreditCard.git]
/
t
/
test.t
diff --git
a/t/test.t
b/t/test.t
index
5a4cdec
..
6bd1f5b
100644
(file)
--- a/
t/test.t
+++ b/
t/test.t
@@
-40,6
+40,7
@@
sub test_card_identification {
'6280xxxxxxxxxxxx' => 'Discover card', #China Union Pay
'12345678' => 'Isracard',
'123456780' => 'Isracard',
+ '60xx xxxx xxxx xxxx' => 'Discover card', #discover w/2 digits
);
while( my ($k, $v)=each(%test_table) ){
if(cardtype($k) ne $v){