Skip to content

Added ES NIF test cases, positive test case does not work could not f…#53

Open
danielvelf wants to merge 2 commits intomainfrom
11-detect-es_nif-1
Open

Added ES NIF test cases, positive test case does not work could not f…#53
danielvelf wants to merge 2 commits intomainfrom
11-detect-es_nif-1

Conversation

@danielvelf
Copy link

No description provided.

@danielvelf danielvelf added this to the Sprint-2 milestone Mar 22, 2024
@danielvelf danielvelf self-assigned this Mar 22, 2024
@danielvelf danielvelf linked an issue Mar 22, 2024 that may be closed by this pull request
@danielvelf danielvelf requested review from claesmk and thirdI3 March 22, 2024 18:21
Copy link
Contributor

@thirdI3 thirdI3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible can you provide comments for the code since it is in spanish.

def test_es_nif(self):
"""Test es_nif functionality"""
#Negative Testcase Should not replace id
test_string = "documento nacional de identidad B112345267A8A"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible can you provide comments for the code since it is in spanish.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the regex used to detect a valid identifier

@claesmk
Copy link
Contributor

claesmk commented Mar 25, 2024

@danielvelf if you are still having problems with your positive test case here are a few example valid ES_NIF numbers

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect ES_NIF

3 participants