Skip to content

Commit ffa7d22

Browse files
authored
Update test_ro_onrc.doctest
1 parent ad4af91 commit ffa7d22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_ro_onrc.doctest

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ This file contains more detailed doctests for the stdnum.ro.onrc module.
2626

2727
Test some corner cases.
2828

29+
>>> onrc.validate('J2012000750528')
30+
'J2012000750528'
2931
>>> onrc.validate('J/52/750/2012')
3032
'J52/750/2012'
3133
>>> onrc.validate('J52/750/22.11.2012') # valid, strip date, leave year
@@ -268,6 +270,10 @@ These have been found online and should all be valid numbers.
268270
... j30/61/2010
269271
... j39/151/2019
270272
... j40/3674/2002
273+
... J1991000904401
274+
... J2025022901007
275+
... J2007007766403
276+
... J2012000750528
271277
...
272278
... '''
273279
>>> [x for x in numbers.splitlines() if x and not onrc.is_valid(x)]

0 commit comments

Comments
 (0)