Closed davidmgvaz closed 3 years ago
Hi @DimitriPapadopoulos,
I have already corrected the two typos you found and also split the calck_check_digit to an autonomous function, as I saw that was the standard practice
Hi @davidmgvaz
Thanks for the contribution. Could you provide some test numbers that can be used to confirm the implementation? For most number formats we have a number of tests with valid numbers to be able to validate the correctness of the calculations.
Also a part of the number is a Número de Identificação Civil which has its own check digit. Do you have any idea (or pointers) how to validate that number?
@arthurdejong any particular reason to not update the README?
The README and documentation are updated as part of the release process with update/numlist.py.
This adds CC (Número de Cartão de Cidadão, Portuguese Identity number)