Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added handling for finnish ssn where min age and max age are the same #1937

Merged

Conversation

Pakkanen1
Copy link
Contributor

What does this change

Allows the same min_age and max_age parameters for the Finnish ssn provider.
Added test_ssn_without_age_range() to test scenarios from the 3 supported centuries.

What was wrong

See issue #1936

How this fixes it

When max_age and min_age are the same, the days a person has been alive are calculated according to min_age instead of picking a random number.

Fixes #1936

Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

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

Thank you!

@fcurella fcurella merged commit fc42e6a into joke2k:master Oct 23, 2023
24 checks passed
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.

When attempting to generate a Finnish ssn of a specific age the provider crashes
2 participants