#330 new valtype function

closed
valtype (1)
5
2011-11-16
2011-11-14
MaxJarek
No

I prepare new valtype::iban file for validate Bank Identyficer Number. I think this is good add-ons for tcllib.

Discussion

  • Andreas Kupries

    Andreas Kupries - 2011-11-14
    • labels: --> valtype
    • assigned_to: nobody --> andreas_kupries
     
  • Andreas Kupries

    Andreas Kupries - 2011-11-14
    • summary: new valtype funcion --> new valtype function
     
  • MaxJarek

    MaxJarek - 2011-11-15

    Yes, this is International_Bank_Account_Number. I attach new version function when i include references. I attach also test script for test correct iban numbers for some countries. I have only examples of correct IBANs.

     
  • MaxJarek

    MaxJarek - 2011-11-15

    iban number examples and test script

     
  • MaxJarek

    MaxJarek - 2011-11-15

    new version valtype::iban

     
  • Andreas Kupries

    Andreas Kupries - 2011-11-16

    Thank you. I have integrated this new version with the previous one, extending the range of checks a bit. I also moved some of the fixed values into type variables and simplified an expression, the check itself (nested expr is superfluous).

    One of the ibans in your tests is actually not correct, it seems:

    PL78102030170000270200618694
    becomes 102030170000270200618694 PL78
    becomes 102030170000270200618694 2521 78
    % 97 == 46 != 1
    (Confirmed using 'bc'). Spaces in the numbers just for clarity.

    I will take that as a test case of an incorrect number.

     
  • Andreas Kupries

    Andreas Kupries - 2011-11-16

    Committed everything to CVS head.

     
  • Andreas Kupries

    Andreas Kupries - 2011-11-16
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks