|
|
|
class: Credit Card
${ccNumber(cardno )}
input | ${ccNumber(7777777777777777)} |
yields | 7777777777777777
|
input | ${ccNumber(7777-7777-7777-7777)} |
yields | 7777777777777777
|
${ccValid(cardno )}
input | ${ccValid(7777777777777777)} |
yields | FAILURE usage: ${ccValid(credit card #)}
|
input | ${ccValid(4444555503053331)} |
yields | SUCCESS
|
input | ${ccValid(4444-5555-0305-3331)} |
yields | SUCCESS
|
${ccType(cardno )}
input | ${ccType(7777777777777777)} |
yields | unknown
|
input | ${ccType(4444555503053331)} |
yields | visa
|
input | ${ccType(4444-5555-0305-3331)} |
yields | visa
|
|
|