Skip to content

Add CC (Número de Cartão de Cidadão, Portuguese Identity number)#265

Closed
davidmgvaz wants to merge 2 commits into
arthurdejong:masterfrom
adevolutio:master
Closed

Add CC (Número de Cartão de Cidadão, Portuguese Identity number)#265
davidmgvaz wants to merge 2 commits into
arthurdejong:masterfrom
adevolutio:master

Conversation

@davidmgvaz

Copy link
Copy Markdown
Contributor

This adds CC (Número de Cartão de Cidadão, Portuguese Identity number)

Comment thread stdnum/pt/cc.py Outdated
Comment thread stdnum/pt/cc.py Outdated
@davidmgvaz

Copy link
Copy Markdown
Contributor Author

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

@arthurdejong

Copy link
Copy Markdown
Owner

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.

@arthurdejong

Copy link
Copy Markdown
Owner

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?

@magamig

magamig commented Jul 26, 2021

Copy link
Copy Markdown

@arthurdejong any particular reason to not update the README?

@arthurdejong

Copy link
Copy Markdown
Owner

The README and documentation are updated as part of the release process with update/numlist.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants