Re: [fpc-devel] Luhn algorithm implementation

2009-04-01 Thread ik
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 wrote: > 2009/3/31 ik : > > > > I wrote a unit for Luhn algorithm using FPC, and I want to release it > under > > LGPL. > > This algorithm check

Re: [fpc-devel] Luhn algorithm implementation

2009-04-01 Thread Graeme Geldenhuys
2009/3/31 ik : > > 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 implemen

[fpc-devel] Luhn algorithm implementation

2009-03-31 Thread ik
Hello, 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. I'm attaching my unit, and I hope it will be added to FPC packages. I'm going to create also a credit card chec