[fpc-devel] Luhn algorithm implementation
ik
idokan at gmail.com
Wed Apr 1 13:42:02 CEST 2009
Here is the unit and a small test case together (don't worry it's not my
credit card number :) )
Ido
On Wed, Apr 1, 2009 at 11:52 AM, Graeme Geldenhuys
<graemeg.lists at gmail.com>wrote:
> 2009/3/31 ik <idokan at gmail.com>:
> >
> > I wrote a unit for Luhn algorithm using FPC, and I want to release it
> under
> > LGPL.
> > This algorithm check validity of numbers such as credit cards, and ID
> > numbers in some countries.
>
> Maybe if you supply some unit tests (FPCUnit is included with FPC) to
> verify that the implementation is correct, it will stand a better
> chance of being added into FPC. Just a thought. ;-)
>
>
> Regards,
> - Graeme -
>
>
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090401/87ffffc0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: luhn.tar.gz
Type: application/x-gzip
Size: 2694 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090401/87ffffc0/attachment.bin>
More information about the fpc-devel
mailing list