You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2020/06/18 21:33:07 UTC

[commons-validator] branch master updated: Changes from PR#19

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git


The following commit(s) were added to refs/heads/master by this push:
     new 4186b6f  Changes from PR#19
4186b6f is described below

commit 4186b6f249ef8d3b25960498868e650fb30fe5c0
Author: Sebb <se...@apache.org>
AuthorDate: Thu Jun 18 22:32:58 2020 +0100

    Changes from PR#19
---
 .../routines/checkdigit/IBANCheckDigitTest.java    | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java b/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java
index 37cf7dd..a2253b0 100644
--- a/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java
+++ b/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java
@@ -50,39 +50,84 @@ public class IBANCheckDigitTest extends AbstractCheckDigitTest {
         routine = IBANCheckDigit.IBAN_CHECK_DIGIT;
         valid  = new String[]  {
                 "AD1200012030200359100100",      // Andorra
+                "AE070331234567890123456",       // United Arab Emirates
+                "AL47212110090000000235698741",  // Albania
                 "AT611904300234573201",          // Austria
+                "AZ21NABZ00000000137010001944",  // Azerbaijan
+                "BA391290079401028494",          // Bosnia and Herzegovina
                 "BE62510007547061",              // Belgium
                 "BE68539007547034",              // Belgium
+                "BG80BNBG96611020345678",        // Bulgaria
+                "BH67BMAG00001299123456",        // Bahrain
+                "BR1800000000141455123924100C2", // Brazil
+                "BY13NBRB3600900000002Z00AB00",  // Belarus
                 "CH3900700115201849173",         // Switzerland
                 "CH9300762011623852957",         // Switzerland
+                "CR05015202001026284066",        // Costa Rica
                 "CY17002001280000001200527600",  // Cyprus
                 "CZ6508000000192000145399",      // Czechoslovakia
                 "DE89370400440532013000",        // Germany
                 "DK5000400440116243",            // Denmark
+                "DO28BAGR00000001212453611324",  // Dominican Republic
                 "EE382200221020145685",          // Estonia
                 "ES8023100001180000012345",      // Spain
                 "FI2112345600000785",            // Finland
+                "FO6264600001631634",            // Denmark (Faroes)
                 "FR1420041010050500013M02606",   // France
                 "GB29NWBK60161331926819",        // UK
                 "GI75NWBK000000007099453",       // Gibraltar
+                "GL8964710001000206",            // Denmark (Greenland)
                 "GR1601101250000000012300695",   // Greece
+                "GT82TRAJ01020000001210029690",  // Guatemala
+                "HR1210010051863000160",         // Croatia
                 "HU42117730161111101800000000",  // Hungary
                 "IE29AIBK93115212345678",        // Ireland
+                "IL620108000000099999999",       // Israel
+                "IQ98NBIQ850123456789012",       // Iraq
                 "IS140159260076545510730339",    // Iceland
                 "IT60X0542811101000000123456",   // Italy
+                "JO94CBJO0010000000000131000302",// Jordan
+                "KW81CBKU0000000000001234560101",// Kuwait
+                "KZ86125KZT5004100100",          // Kazakhstan
+                "LB62099900000001001901229114",  // Lebanon
+                "LC55HEMM000100010012001200023015",//Saint Lucia
+                "LI21088100002324013AA",         // Liechtenstein (Principality of)
                 "LT121000011101001000",          // Lithuania
                 "LU280019400644750000",          // Luxembourg
                 "LV80BANK0000435195001",         // Latvia
+                "MC5811222000010123456789030",   // Monaco
+                "MD24AG000225100013104168",      // Moldova
+                "ME25505000012345678951",        // Montenegro
+                "MK07250120000058984",           // Macedonia, Former Yugoslav Republic of
+                "MR1300020001010000123456753",   // Mauritania
                 "MT84MALT011000012345MTLCAST001S",// Malta
+                "MU17BOMM0101101030300200000MUR",// Mauritius
                 "NL39RABO0300065264",            // Netherlands
                 "NL91ABNA0417164300",            // Netherlands
                 "NO9386011117947",               // Norway
+                "PK36SCBL0000001123456702",      // Pakistan
                 "PL27114020040000300201355387",  // Poland
                 "PL60102010260000042270201111",  // Poland
+                "PS92PALS000000000400123456702", // Palestine, State of
                 "PT50000201231234567890154",     // Portugal
+                "QA58DOHB00001234567890ABCDEFG", // Qatar
+                "RO49AAAA1B31007593840000",      // Romania
+                "RS35260005601001611379",        // Serbia
+                "SA0380000000608010167519",      // Saudi Arabia
+                "SC18SSCB11010000000000001497USD",// Seychelles
                 "SE3550000000054910000003",      // Sweden
                 "SI56191000000123438",           // Slovenia
                 "SK3112000000198742637541",      // Slovak Republic
+                "SM86U0322509800000000270100",   // San Marino
+                "ST68000100010051845310112",     // Sao Tome and Principe
+                "SV62CENR00000000000000700025",  // El Salvador
+                "TL380080012345678910157",       // Timor-Leste
+                "TN5910006035183598478831",      // Tunisia
+                "TR330006100519786457841326",    // Turkey
+                "UA213223130000026007233566001", // Ukraine
+                "VA59001123000012345678",        // Vatican City State
+                "VG96VPVG0000012345678901",      // Virgin Islands, British
+                "XK051212012345678906",          // Republic of Kosovo
 
                 // Codes AA and ZZ will never be used as ISO countries nor in IBANs
                 // add some dummy calculated codes to test the limits