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.li...@gmail.com>wrote: > 2009/3/31 ik <ido...@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@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel >
luhn.tar.gz
Description: GNU Zip compressed data
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel