Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_no_fodselsnummer.doctest
Commit message (Collapse)AuthorAgeFilesLines
* Update Fødselsnummer test case for date in futureArthur de Jong2022-10-191-2/+2
| | | | The future was now. This problem was pushed forwards to October 2039.
* Implement get_birth_date() for no.fodselsnummerLeon Sandøy2020-03-011-45/+52
| | | | | | | | | | | | | | | | | | | | | This adds a function that allows you to determine a persons birth date from a Norwegian fødselsnummer. This also accounts for D-numbers, H-numbers, and FH-numbers, which contain special exceptions and modifications to the birthdate portion of the number. Most of the information this is based on was found here: https://no.wikipedia.org/wiki/F%C3%B8dselsnummer#H-nummer It also updates the list of valid fødselsnummer in the tests, since this list contained many numbers that are not valid by this new validation that now accounts for dates. Additionally, this updates all tests that were failing under the new validation, and adds a few new tests to bring the coverage to 100%. Closes https://github.com/arthurdejong/python-stdnum/pull/187
* Add Norwegian FødselsnummerIlya Vihtinsky2018-12-241-0/+112
Closes https://github.com/arthurdejong/python-stdnum/pull/88