mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
gs1_lint.h: update to latest gs1-format-spec.txt, new AI 715
This commit is contained in:
parent
e9d5bf8d88
commit
d9b6284a67
@ -620,7 +620,7 @@ static int gs1_lint(const int ai, const unsigned char *data, const int data_len,
|
||||
|
||||
} else if (ai < 800) {
|
||||
|
||||
if (ai >= 710 && ai <= 714) {
|
||||
if (ai >= 710 && ai <= 715) {
|
||||
return x1__20(data, data_len, p_err_no, p_err_posn, err_msg);
|
||||
}
|
||||
|
||||
|
@ -1128,215 +1128,216 @@ static void test_gs1_verify(int index, int debug) {
|
||||
/*770*/ { "[713]abcdefghijklmnopqrstu", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*771*/ { "[714]abcdefghijklmnopqrst", 0, "714abcdefghijklmnopqrst" },
|
||||
/*772*/ { "[714]abcdefghijklmnopqrstu", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*773*/ { "[715]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*774*/ { "[716]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*775*/ { "[719]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*776*/ { "[72]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*777*/ { "[720]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*778*/ { "[7200]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*779*/ { "[721]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*780*/ { "[7210]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*781*/ { "[7220]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*782*/ { "[7230]EMabcdefghijklmnopqrstuvwxyzab", 0, "7230EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*783*/ { "[7230]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*784*/ { "[7230]EM", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*785*/ { "[7231]EMabcdefghijklmnopqrstuvwxyzab", 0, "7231EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*786*/ { "[7231]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*787*/ { "[7232]EMabcdefghijklmnopqrstuvwxyzab", 0, "7232EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*788*/ { "[7232]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*789*/ { "[7233]EMabcdefghijklmnopqrstuvwxyzab", 0, "7233EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*790*/ { "[7233]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*791*/ { "[7234]EMabcdefghijklmnopqrstuvwxyzab", 0, "7234EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*792*/ { "[7234]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*793*/ { "[7235]EMabcdefghijklmnopqrstuvwxyzab", 0, "7235EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*794*/ { "[7235]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*795*/ { "[7236]EMabcdefghijklmnopqrstuvwxyzab", 0, "7236EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*796*/ { "[7236]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*797*/ { "[7237]EMabcdefghijklmnopqrstuvwxyzab", 0, "7237EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*798*/ { "[7237]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*799*/ { "[7238]EMabcdefghijklmnopqrstuvwxyzab", 0, "7238EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*800*/ { "[7238]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*801*/ { "[7239]EMabcdefghijklmnopqrstuvwxyzab", 0, "7239EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*802*/ { "[7239]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*803*/ { "[7239]E", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*804*/ { "[7240]abcdefghijklmnopqrst", 0, "7240abcdefghijklmnopqrst" },
|
||||
/*805*/ { "[7240]abcdefghijklmnopqrstu", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*806*/ { "[7241]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*807*/ { "[7249]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*808*/ { "[7250]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*809*/ { "[7299]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*810*/ { "[73]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*811*/ { "[7300]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*812*/ { "[74]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*813*/ { "[7400]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*814*/ { "[79]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*815*/ { "[7900]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*816*/ { "[7999]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*817*/ { "[80]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*818*/ { "[800]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*819*/ { "[8000]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*820*/ { "[8001]12345678901234", ZINT_WARN_NONCOMPLIANT, "800112345678901234" },
|
||||
/*821*/ { "[8001]12345678901204", 0, "800112345678901204" },
|
||||
/*822*/ { "[8001]1234123456789012345", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*823*/ { "[8002]abcdefghijklmnopqrst", 0, "8002abcdefghijklmnopqrst" },
|
||||
/*824*/ { "[8002]abcdefghijklmnopqrstu", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*825*/ { "[8003]01234567890123abcdefghijklmnop", ZINT_WARN_NONCOMPLIANT, "800301234567890123abcdefghijklmnop" },
|
||||
/*826*/ { "[8003]01234567890128abcdefghijklmnop", 0, "800301234567890128abcdefghijklmnop" },
|
||||
/*827*/ { "[8003]01234567890128abcdefghijklmnopq", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*828*/ { "[8004]abcdefghijklmnopqrstuvwxyz1234", ZINT_WARN_NONCOMPLIANT, "8004abcdefghijklmnopqrstuvwxyz1234" },
|
||||
/*829*/ { "[8004]12cdefghijklmnopqrstuvwxyz1234", 0, "800412cdefghijklmnopqrstuvwxyz1234" },
|
||||
/*830*/ { "[8004]abcdefghijklmnopqrstuvwxyz12345", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*831*/ { "[8005]123456", 0, "8005123456" },
|
||||
/*832*/ { "[8005]12345", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*833*/ { "[8005]1234567", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*834*/ { "[8006]123456789012341212", ZINT_WARN_NONCOMPLIANT, "8006123456789012341212" },
|
||||
/*835*/ { "[8006]123456789012311212", 0, "8006123456789012311212" },
|
||||
/*836*/ { "[8006]12345678901234121", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*837*/ { "[8006]1234567890123412123", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*838*/ { "[8007]abcdefghijklmnopqrstuvwxyz12345678", ZINT_WARN_NONCOMPLIANT, "8007abcdefghijklmnopqrstuvwxyz12345678" },
|
||||
/*839*/ { "[8007]AD95EFGHIJKLMNOPQRSTUVWXYZ12345678", 0, "8007AD95EFGHIJKLMNOPQRSTUVWXYZ12345678" },
|
||||
/*840*/ { "[8007]AD95EFGHIJKLMNOPQRSTUVWXYZ123456789", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*841*/ { "[8008]123456121212", ZINT_WARN_NONCOMPLIANT, "8008123456121212" },
|
||||
/*842*/ { "[8008]121256121212", ZINT_WARN_NONCOMPLIANT, "8008121256121212" },
|
||||
/*843*/ { "[8008]121231121212", 0, "8008121231121212" },
|
||||
/*844*/ { "[8008]1234561212", ZINT_WARN_NONCOMPLIANT, "80081234561212" },
|
||||
/*845*/ { "[8008]1212311212", 0, "80081212311212" },
|
||||
/*846*/ { "[8008]12345612", ZINT_WARN_NONCOMPLIANT, "800812345612" },
|
||||
/*847*/ { "[8008]12010112", 0, "800812010112" },
|
||||
/*848*/ { "[8008]1234561", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*849*/ { "[8008]123456121", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*850*/ { "[8008]12345612121", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*851*/ { "[8008]1234561212123", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*852*/ { "[8009]12345678901234567890123456789012345678901234567890", 0, "800912345678901234567890123456789012345678901234567890" },
|
||||
/*853*/ { "[8009]123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*854*/ { "[8010]1234abcdefghijklmnopqrstuvwxyz1", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*855*/ { "[8011]123456789012", 0, "8011123456789012" },
|
||||
/*856*/ { "[8011]1234567890123", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*857*/ { "[8012]abcdefghijklmnopqrst", 0, "8012abcdefghijklmnopqrst" },
|
||||
/*858*/ { "[8012]abcdefghijklmnopqrstuv", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*859*/ { "[8013]1234abcdefghijklmnopqrsQP", 0, "80131234abcdefghijklmnopqrsQP" },
|
||||
/*860*/ { "[8013]1234abcdefghijklmnopqrsQPv", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*861*/ { "[8014]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*862*/ { "[8016]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*863*/ { "[8017]313131313131313139", ZINT_WARN_NONCOMPLIANT, "8017313131313131313139" },
|
||||
/*864*/ { "[8017]313131313131313131", 0, "8017313131313131313131" },
|
||||
/*865*/ { "[8017]31313131313131313", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*866*/ { "[8017]3131313131313131390", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*867*/ { "[8018]313131313131313139", ZINT_WARN_NONCOMPLIANT, "8018313131313131313139" },
|
||||
/*868*/ { "[8018]313131313131313131", 0, "8018313131313131313131" },
|
||||
/*869*/ { "[8018]31313131313131313", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*870*/ { "[8018]3131313131313131390", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*871*/ { "[8019]1234567890", 0, "80191234567890" },
|
||||
/*872*/ { "[8019]12345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*873*/ { "[8020]abcdefghijklmnopqrstuvwxy", 0, "8020abcdefghijklmnopqrstuvwxy" },
|
||||
/*874*/ { "[8020]abcdefghijklmnopqrstuvwxyz", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*875*/ { "[8021]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*876*/ { "[8025]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*877*/ { "[8026]123456789012341212", ZINT_WARN_NONCOMPLIANT, "8026123456789012341212" },
|
||||
/*878*/ { "[8026]123456789012311212", 0, "8026123456789012311212" },
|
||||
/*879*/ { "[8026]1234567890123451212", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*880*/ { "[8026]12345678901234512", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*881*/ { "[8027]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*882*/ { "[8030]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*883*/ { "[8040]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*884*/ { "[8050]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*885*/ { "[8060]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*886*/ { "[8070]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*887*/ { "[8080]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*888*/ { "[8090]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*889*/ { "[8099]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*890*/ { "[81]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*891*/ { "[8100]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*892*/ { "[8109]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*893*/ { "[8110]5123456789011234565123455123450123105123450123512345678901320123190000", 0, "81105123456789011234565123455123450123105123450123512345678901320123190000" },
|
||||
/*894*/ { "[8110]51234567890112345651234551234501231051234501235123456789013201231900001", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*895*/ { "[8111]1234", 0, "81111234" },
|
||||
/*896*/ { "[8111]12345", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*897*/ { "[8111]123", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*898*/ { "[8112]1234567890123456789012345678901234567890123456789012345678901234567890", ZINT_WARN_NONCOMPLIANT, "81121234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*899*/ { "[8112]12345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*900*/ { "[8112]061234567890121234569123456789012345", 0, "8112061234567890121234569123456789012345" },
|
||||
/*901*/ { "[8113]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*902*/ { "[8120]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*903*/ { "[8130]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*904*/ { "[8140]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*905*/ { "[8150]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*906*/ { "[8190]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*907*/ { "[8199]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*908*/ { "[82]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*909*/ { "[8200]1234567890123456789012345678901234567890123456789012345678901234567890", 0, "82001234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*910*/ { "[8201]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*911*/ { "[8210]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*912*/ { "[8220]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*913*/ { "[8230]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*914*/ { "[8240]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*915*/ { "[8250]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*916*/ { "[8290]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*917*/ { "[8299]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*918*/ { "[83]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*919*/ { "[830]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*920*/ { "[8300]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*921*/ { "[84]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*922*/ { "[840]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*923*/ { "[8400]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*924*/ { "[85]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*925*/ { "[850]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*926*/ { "[8500]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*927*/ { "[89]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*928*/ { "[890]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*929*/ { "[8900]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*930*/ { "[90]abcdefghijklmnopqrstuvwxyz1234", 0, "90abcdefghijklmnopqrstuvwxyz1234" },
|
||||
/*931*/ { "[90]abcdefghijklmnopqrstuvwxyz12345", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*932*/ { "[900]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*933*/ { "[9000]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*934*/ { "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "91123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*935*/ { "[91]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*936*/ { "[910]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*937*/ { "[9100]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*938*/ { "[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "92123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*939*/ { "[92]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*940*/ { "[920]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*941*/ { "[9200]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*942*/ { "[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "93123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*943*/ { "[93]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*944*/ { "[930]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*945*/ { "[9300]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*946*/ { "[94]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "94123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*947*/ { "[94]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*948*/ { "[940]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*949*/ { "[9400]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*950*/ { "[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "95123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*951*/ { "[95]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*952*/ { "[950]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*953*/ { "[9500]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*954*/ { "[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "96123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*955*/ { "[96]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*956*/ { "[960]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*957*/ { "[9600]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*958*/ { "[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "97123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*959*/ { "[97]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*960*/ { "[970]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*961*/ { "[9700]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*962*/ { "[98]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "98123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*963*/ { "[98]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*964*/ { "[980]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*965*/ { "[9800]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*966*/ { "[99]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "99123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*967*/ { "[99]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*968*/ { "[990]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*969*/ { "[9900]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*970*/ { "[9999]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*971*/ { "[01]12345678901234[7006]200101", ZINT_WARN_NONCOMPLIANT, "01123456789012347006200101" },
|
||||
/*972*/ { "[01]12345678901231[7006]200101", 0, "01123456789012317006200101" },
|
||||
/*973*/ { "[3900]1234567890[01]12345678901234", ZINT_WARN_NONCOMPLIANT, "39001234567890[0112345678901234" },
|
||||
/*974*/ { "[3900]1234567890[01]12345678901231", 0, "39001234567890[0112345678901231" },
|
||||
/*975*/ { "[253]12345678901234[3901]12345678901234[20]12", ZINT_WARN_NONCOMPLIANT, "25312345678901234[390112345678901234[2012" },
|
||||
/*976*/ { "[253]12345678901284[3901]12345678901234[20]12", 0, "25312345678901284[390112345678901234[2012" },
|
||||
/*977*/ { "[253]12345678901234[01]12345678901234[3901]12345678901234[20]12", ZINT_WARN_NONCOMPLIANT, "25312345678901234[0112345678901234390112345678901234[2012" },
|
||||
/*978*/ { "[253]12345678901284[01]12345678901231[3901]12345678901234[20]12", 0, "25312345678901284[0112345678901231390112345678901234[2012" },
|
||||
/*979*/ { "[01]12345678901231[0A]12345678901231[20]12", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*980*/ { "[01]12345678901231[0]12345678901231[20]12", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*981*/ { "[01]12345678901231[]12345678901231[20]12", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*773*/ { "[715]abcdefghijklmnopqrst", 0, "715abcdefghijklmnopqrst" },
|
||||
/*774*/ { "[715]abcdefghijklmnopqrstu", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*775*/ { "[716]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*776*/ { "[719]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*777*/ { "[72]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*778*/ { "[720]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*779*/ { "[7200]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*780*/ { "[721]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*781*/ { "[7210]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*782*/ { "[7220]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*783*/ { "[7230]EMabcdefghijklmnopqrstuvwxyzab", 0, "7230EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*784*/ { "[7230]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*785*/ { "[7230]EM", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*786*/ { "[7231]EMabcdefghijklmnopqrstuvwxyzab", 0, "7231EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*787*/ { "[7231]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*788*/ { "[7232]EMabcdefghijklmnopqrstuvwxyzab", 0, "7232EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*789*/ { "[7232]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*790*/ { "[7233]EMabcdefghijklmnopqrstuvwxyzab", 0, "7233EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*791*/ { "[7233]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*792*/ { "[7234]EMabcdefghijklmnopqrstuvwxyzab", 0, "7234EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*793*/ { "[7234]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*794*/ { "[7235]EMabcdefghijklmnopqrstuvwxyzab", 0, "7235EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*795*/ { "[7235]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*796*/ { "[7236]EMabcdefghijklmnopqrstuvwxyzab", 0, "7236EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*797*/ { "[7236]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*798*/ { "[7237]EMabcdefghijklmnopqrstuvwxyzab", 0, "7237EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*799*/ { "[7237]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*800*/ { "[7238]EMabcdefghijklmnopqrstuvwxyzab", 0, "7238EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*801*/ { "[7238]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*802*/ { "[7239]EMabcdefghijklmnopqrstuvwxyzab", 0, "7239EMabcdefghijklmnopqrstuvwxyzab" },
|
||||
/*803*/ { "[7239]EMabcdefghijklmnopqrstuvwxyzabc", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*804*/ { "[7239]E", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*805*/ { "[7240]abcdefghijklmnopqrst", 0, "7240abcdefghijklmnopqrst" },
|
||||
/*806*/ { "[7240]abcdefghijklmnopqrstu", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*807*/ { "[7241]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*808*/ { "[7249]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*809*/ { "[7250]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*810*/ { "[7299]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*811*/ { "[73]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*812*/ { "[7300]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*813*/ { "[74]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*814*/ { "[7400]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*815*/ { "[79]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*816*/ { "[7900]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*817*/ { "[7999]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*818*/ { "[80]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*819*/ { "[800]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*820*/ { "[8000]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*821*/ { "[8001]12345678901234", ZINT_WARN_NONCOMPLIANT, "800112345678901234" },
|
||||
/*822*/ { "[8001]12345678901204", 0, "800112345678901204" },
|
||||
/*823*/ { "[8001]1234123456789012345", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*824*/ { "[8002]abcdefghijklmnopqrst", 0, "8002abcdefghijklmnopqrst" },
|
||||
/*825*/ { "[8002]abcdefghijklmnopqrstu", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*826*/ { "[8003]01234567890123abcdefghijklmnop", ZINT_WARN_NONCOMPLIANT, "800301234567890123abcdefghijklmnop" },
|
||||
/*827*/ { "[8003]01234567890128abcdefghijklmnop", 0, "800301234567890128abcdefghijklmnop" },
|
||||
/*828*/ { "[8003]01234567890128abcdefghijklmnopq", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*829*/ { "[8004]abcdefghijklmnopqrstuvwxyz1234", ZINT_WARN_NONCOMPLIANT, "8004abcdefghijklmnopqrstuvwxyz1234" },
|
||||
/*830*/ { "[8004]12cdefghijklmnopqrstuvwxyz1234", 0, "800412cdefghijklmnopqrstuvwxyz1234" },
|
||||
/*831*/ { "[8004]abcdefghijklmnopqrstuvwxyz12345", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*832*/ { "[8005]123456", 0, "8005123456" },
|
||||
/*833*/ { "[8005]12345", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*834*/ { "[8005]1234567", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*835*/ { "[8006]123456789012341212", ZINT_WARN_NONCOMPLIANT, "8006123456789012341212" },
|
||||
/*836*/ { "[8006]123456789012311212", 0, "8006123456789012311212" },
|
||||
/*837*/ { "[8006]12345678901234121", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*838*/ { "[8006]1234567890123412123", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*839*/ { "[8007]abcdefghijklmnopqrstuvwxyz12345678", ZINT_WARN_NONCOMPLIANT, "8007abcdefghijklmnopqrstuvwxyz12345678" },
|
||||
/*840*/ { "[8007]AD95EFGHIJKLMNOPQRSTUVWXYZ12345678", 0, "8007AD95EFGHIJKLMNOPQRSTUVWXYZ12345678" },
|
||||
/*841*/ { "[8007]AD95EFGHIJKLMNOPQRSTUVWXYZ123456789", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*842*/ { "[8008]123456121212", ZINT_WARN_NONCOMPLIANT, "8008123456121212" },
|
||||
/*843*/ { "[8008]121256121212", ZINT_WARN_NONCOMPLIANT, "8008121256121212" },
|
||||
/*844*/ { "[8008]121231121212", 0, "8008121231121212" },
|
||||
/*845*/ { "[8008]1234561212", ZINT_WARN_NONCOMPLIANT, "80081234561212" },
|
||||
/*846*/ { "[8008]1212311212", 0, "80081212311212" },
|
||||
/*847*/ { "[8008]12345612", ZINT_WARN_NONCOMPLIANT, "800812345612" },
|
||||
/*848*/ { "[8008]12010112", 0, "800812010112" },
|
||||
/*849*/ { "[8008]1234561", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*850*/ { "[8008]123456121", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*851*/ { "[8008]12345612121", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*852*/ { "[8008]1234561212123", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*853*/ { "[8009]12345678901234567890123456789012345678901234567890", 0, "800912345678901234567890123456789012345678901234567890" },
|
||||
/*854*/ { "[8009]123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*855*/ { "[8010]1234abcdefghijklmnopqrstuvwxyz1", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*856*/ { "[8011]123456789012", 0, "8011123456789012" },
|
||||
/*857*/ { "[8011]1234567890123", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*858*/ { "[8012]abcdefghijklmnopqrst", 0, "8012abcdefghijklmnopqrst" },
|
||||
/*859*/ { "[8012]abcdefghijklmnopqrstuv", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*860*/ { "[8013]1234abcdefghijklmnopqrsQP", 0, "80131234abcdefghijklmnopqrsQP" },
|
||||
/*861*/ { "[8013]1234abcdefghijklmnopqrsQPv", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*862*/ { "[8014]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*863*/ { "[8016]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*864*/ { "[8017]313131313131313139", ZINT_WARN_NONCOMPLIANT, "8017313131313131313139" },
|
||||
/*865*/ { "[8017]313131313131313131", 0, "8017313131313131313131" },
|
||||
/*866*/ { "[8017]31313131313131313", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*867*/ { "[8017]3131313131313131390", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*868*/ { "[8018]313131313131313139", ZINT_WARN_NONCOMPLIANT, "8018313131313131313139" },
|
||||
/*869*/ { "[8018]313131313131313131", 0, "8018313131313131313131" },
|
||||
/*870*/ { "[8018]31313131313131313", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*871*/ { "[8018]3131313131313131390", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*872*/ { "[8019]1234567890", 0, "80191234567890" },
|
||||
/*873*/ { "[8019]12345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*874*/ { "[8020]abcdefghijklmnopqrstuvwxy", 0, "8020abcdefghijklmnopqrstuvwxy" },
|
||||
/*875*/ { "[8020]abcdefghijklmnopqrstuvwxyz", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*876*/ { "[8021]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*877*/ { "[8025]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*878*/ { "[8026]123456789012341212", ZINT_WARN_NONCOMPLIANT, "8026123456789012341212" },
|
||||
/*879*/ { "[8026]123456789012311212", 0, "8026123456789012311212" },
|
||||
/*880*/ { "[8026]1234567890123451212", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*881*/ { "[8026]12345678901234512", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*882*/ { "[8027]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*883*/ { "[8030]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*884*/ { "[8040]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*885*/ { "[8050]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*886*/ { "[8060]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*887*/ { "[8070]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*888*/ { "[8080]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*889*/ { "[8090]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*890*/ { "[8099]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*891*/ { "[81]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*892*/ { "[8100]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*893*/ { "[8109]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*894*/ { "[8110]5123456789011234565123455123450123105123450123512345678901320123190000", 0, "81105123456789011234565123455123450123105123450123512345678901320123190000" },
|
||||
/*895*/ { "[8110]51234567890112345651234551234501231051234501235123456789013201231900001", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*896*/ { "[8111]1234", 0, "81111234" },
|
||||
/*897*/ { "[8111]12345", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*898*/ { "[8111]123", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*899*/ { "[8112]1234567890123456789012345678901234567890123456789012345678901234567890", ZINT_WARN_NONCOMPLIANT, "81121234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*900*/ { "[8112]12345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*901*/ { "[8112]061234567890121234569123456789012345", 0, "8112061234567890121234569123456789012345" },
|
||||
/*902*/ { "[8113]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*903*/ { "[8120]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*904*/ { "[8130]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*905*/ { "[8140]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*906*/ { "[8150]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*907*/ { "[8190]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*908*/ { "[8199]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*909*/ { "[82]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*910*/ { "[8200]1234567890123456789012345678901234567890123456789012345678901234567890", 0, "82001234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*911*/ { "[8201]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*912*/ { "[8210]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*913*/ { "[8220]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*914*/ { "[8230]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*915*/ { "[8240]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*916*/ { "[8250]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*917*/ { "[8290]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*918*/ { "[8299]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*919*/ { "[83]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*920*/ { "[830]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*921*/ { "[8300]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*922*/ { "[84]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*923*/ { "[840]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*924*/ { "[8400]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*925*/ { "[85]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*926*/ { "[850]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*927*/ { "[8500]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*928*/ { "[89]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*929*/ { "[890]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*930*/ { "[8900]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*931*/ { "[90]abcdefghijklmnopqrstuvwxyz1234", 0, "90abcdefghijklmnopqrstuvwxyz1234" },
|
||||
/*932*/ { "[90]abcdefghijklmnopqrstuvwxyz12345", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*933*/ { "[900]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*934*/ { "[9000]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*935*/ { "[91]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "91123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*936*/ { "[91]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*937*/ { "[910]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*938*/ { "[9100]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*939*/ { "[92]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "92123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*940*/ { "[92]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*941*/ { "[920]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*942*/ { "[9200]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*943*/ { "[93]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "93123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*944*/ { "[93]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*945*/ { "[930]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*946*/ { "[9300]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*947*/ { "[94]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "94123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*948*/ { "[94]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*949*/ { "[940]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*950*/ { "[9400]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*951*/ { "[95]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "95123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*952*/ { "[95]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*953*/ { "[950]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*954*/ { "[9500]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*955*/ { "[96]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "96123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*956*/ { "[96]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*957*/ { "[960]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*958*/ { "[9600]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*959*/ { "[97]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "97123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*960*/ { "[97]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*961*/ { "[970]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*962*/ { "[9700]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*963*/ { "[98]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "98123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*964*/ { "[98]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*965*/ { "[980]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*966*/ { "[9800]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*967*/ { "[99]123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", 0, "99123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" },
|
||||
/*968*/ { "[99]1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*969*/ { "[990]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*970*/ { "[9900]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*971*/ { "[9999]1234", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*972*/ { "[01]12345678901234[7006]200101", ZINT_WARN_NONCOMPLIANT, "01123456789012347006200101" },
|
||||
/*973*/ { "[01]12345678901231[7006]200101", 0, "01123456789012317006200101" },
|
||||
/*974*/ { "[3900]1234567890[01]12345678901234", ZINT_WARN_NONCOMPLIANT, "39001234567890[0112345678901234" },
|
||||
/*975*/ { "[3900]1234567890[01]12345678901231", 0, "39001234567890[0112345678901231" },
|
||||
/*976*/ { "[253]12345678901234[3901]12345678901234[20]12", ZINT_WARN_NONCOMPLIANT, "25312345678901234[390112345678901234[2012" },
|
||||
/*977*/ { "[253]12345678901284[3901]12345678901234[20]12", 0, "25312345678901284[390112345678901234[2012" },
|
||||
/*978*/ { "[253]12345678901234[01]12345678901234[3901]12345678901234[20]12", ZINT_WARN_NONCOMPLIANT, "25312345678901234[0112345678901234390112345678901234[2012" },
|
||||
/*979*/ { "[253]12345678901284[01]12345678901231[3901]12345678901234[20]12", 0, "25312345678901284[0112345678901231390112345678901234[2012" },
|
||||
/*980*/ { "[01]12345678901231[0A]12345678901231[20]12", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*981*/ { "[01]12345678901231[0]12345678901231[20]12", ZINT_ERROR_INVALID_DATA, "" },
|
||||
/*982*/ { "[01]12345678901231[]12345678901231[20]12", ZINT_ERROR_INVALID_DATA, "" },
|
||||
};
|
||||
int data_size = ARRAY_SIZE(data);
|
||||
int i, length, ret;
|
||||
|
Loading…
Reference in New Issue
Block a user