8000 Add various test numbers · adh/python-stdnum@3aedb1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 3aedb1f

Browse files
committed
Add various test numbers
1 parent d43ad77 commit 3aedb1f

File tree

4 files changed

+110
-1
lines changed

4 files changed

+110
-1
lines changed

tests/test_ar_cbu.doctest

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,98 @@ These have been found online and should all be valid numbers.
3737
... 0 7 2 0 1 4 6 8 2 0 0 0 0 0 0 1 0 6 2 3 4 0
3838
... 0 7 2 0 1 6 8 0 2 0 0 0 0 0 0 1 1 8 3 2 3 6
3939
... 0 7 2 0 3 8 0 8 8 8 0 0 0 0 3 5 5 3 3 9 6 8
40+
... 0070034420000002310035
41+
... 0070085620000002598406
42+
... 0070089420000002991793
4043
... 0070090020000004146504
44+
... 0070109530004141775453
45+
... 0070114920000004100700
46+
... 0070274620000003448717
47+
... 0070999020000057705860
4148
... 0110097630009704213797
49+
... 0110102320010200444955
50+
... 0110106130010603111097
51+
... 0110106130010604601847
52+
... 0110125220012510923535
53+
... 0110130620013014594573
54+
... 0110175730017523189801
55+
... 0110204030020409626051
56+
... 0110216320021610025999
57+
... 0110230930023001323933
58+
... 0110230930023008918451
59+
... 0110283520028310814652
60+
... 0110363020036300101822
61+
... 0110377720037700120402
62+
... 0110385220038500036492
63+
... 0110409120040921180719
64+
... 0110424420042410570553
65+
... 0110454130045407688379
66+
... 0110477020047731297428
67+
... 0110508720050800019135
68+
... 0110521620052100223696
69+
... 0110551320055100112719
70+
... 0140313601697100515896
71+
... 0140313601697100557414
4272
... 0140339601630201381276
4373
... 0140351801684605023087
74+
... 0140352501684700733410
75+
... 0140352503684700819149
76+
... 0140369303631000285682
77+
... 0140391403672850026131
78+
... 0140410801680000361629
79+
... 0140417701630000088992
80+
... 0140444301650700088379
81+
... 0140476401626402048153
82+
... 01505016-02000120967405
4483
... 0168888-1-0000827441015-8
84+
... 0168888100000641080265
85+
... 0170074920000030293449
4586
... 01703342 – 200 000 3036 7766
87+
... 0200306901000040010097
88+
... 0200348901000000334779
89+
... 0200398411000030044362
90+
... 0200405501000000213951
91+
... 0200451211000030033962
4692
... 0200915901000000274233
4793
... 03400562 00560007577005
94+
... 0720000720000001681136
4895
... 0720079388000035942322
96+
... 0720297320000000081418
97+
... 0720402320000002633754
98+
... 0930301810100000992800
99+
... 0930301810100001043132
100+
... 0930310010100014278400
101+
... 0930324720100053299139
102+
... 0930324720100055211111
49103
... 0940099324001313220028
50104
... 1 5 0 0 0 0 6 0 0 0 0 0 5 6 6 0 4 4 7 2 0 0
51105
... 1 5 0 0 0 8 7 9 - 0 0 0 5 1 3 3 2 0 7 5 1 9 - 6
52106
... 1 9 1 0 1 1 9 6 5 5 0 1 1 9 0 1 0 8 4 6 4 6
107+
... 1910104255110401549353
108+
... 1910126455012600786400
109+
... 1910186855018601143246
110+
... 1910369755036901130632
111+
... 2850345330000000781858
112+
... 2850353830094127564171
113+
... 2850376730000059833142
114+
... 2850400530094105352671
115+
... 2850536730094125514871
53116
... 2850590940090418135201
117+
... 2850729540000001576069
118+
... 2850732530000002707016
119+
... 2850734940094696942458
120+
... 2850760830094054972021
121+
... 2850882330094054578991
122+
... 3110003611000000537014
123+
... 3110013511000600125046
124+
... 3300542115420000740012
125+
... 3300551315510001836040
126+
... 3860002703000000438381
127+
... 3860011901000020526675
128+
... 3860060703000013990500
129+
... 5729195067928761667584
130+
... 7362966507842824472644
131+
... 9498175528566296510521
54132
...
55133
... '''
56134
>>> [x for x in numbers.splitlines() if x and not cbu.is_valid(x)]

tests/test_ar_cuit.doctest

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ tries to validate a number of numbers that have been found online.
2727

2828
These have been found online and should all be valid numbers.
2929

30-
3130
>>> numbers = '''
3231
...
32+
... 20-10123456-9
3333
... 20040356437
3434
... 20047433747
3535
... 20050573452
@@ -44,6 +44,7 @@ These have been found online and should all be valid numbers.
4444
... 20081042404
4545
... 20086295106
4646
... 20086607043
47+
... 20101234569
4748
... 20101376630
4849
... 20102289855
4950
... 20103055475
@@ -123,6 +124,7 @@ These have been found online and should all be valid numbers.
123124
... 20922078182
124125
... 20922312401
125126
... 20929597916
127+
... 23000052264
126128
... 23042708194
127129
... 23045174999
128130
... 23081181489
@@ -141,7 +143,9 @@ These have been found online and should all be valid numbers.
141143
... 23338909764
142144
... 23355601684
143145
... 23935319099
146+
... 24117166062
144147
... 24276145513
148+
... 27-10345678-4
145149
... 27018259899
146150
... 27023396861
147151
... 27032487705
@@ -152,6 +156,7 @@ These have been found online and should all be valid numbers.
152156
... 27066515678
153157
... 27066595485
154158
... 27098767849
159+
... 27103456784
155160
... 27107931738
156161
... 27114547382
157162
... 27121262059
@@ -211,6 +216,7 @@ These have been found online and should all be valid numbers.
211216
... 27938621395
212217
... 27940212664
213218
... 27949019387
219+
... 30011111110
214220
... 30653311857
215221
... 30670349760
216222
... 30691769336
@@ -226,10 +232,12 @@ These have been found online and should all be valid numbers.
226232
... 30714322296
227233
... 30714468088
228234
... 30714789062
235+
... 33500001599
229236
... 33534828379
230237
... 33708972679
231238
... 33712308589
232239
... 33714423709
240+
... 34546198105
233241
...
234242
... '''
235243
>>> [x for x in numbers.splitlines() if x and not cuit.is_valid(x)]

tests/test_au_abn.doctest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ These have been found online and should all be valid numbers.
7070
... 43 002 724 334
7171
... 45138393975
7272
... 45686492545
73+
... 46 0 0 2722 3 49
7374
... 46 003 855 561
7475
... 46 003 855 561 
7576
... 46065060376

tests/test_bg_vat.doctest

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,25 @@ Invalid checksum:
4949
Traceback (most recent call last):
5050
...
5151
InvalidChecksum: ...
52+
53+
54+
These have been found online and should all be valid numbers.
55+
56+
>>> numbers = '''
57+
...
58+
... 000565359
59+
... 104453698
60+
... 121817309
61+
... 121887948
62+
... 175015558
63+
... 175223064
64+
... 176040023
65+
... 202322728
66+
... 202342638
67+
... 203445228
68+
... 831919536
69+
... 835014925
70+
...
71+
... '''
72+
>>> [x for x in numbers.splitlines() if x and not vat.is_valid(x)]
73+
[]

0 commit comments

Comments
 (0)
0