Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/numdb-test.dat
Commit message (Collapse)AuthorAgeFilesLines
* Fix problem in numdb with missing sub-propertiesArthur de Jong2022-02-131-0/+1
| | | | | If a numdb data file line contains multiple values or ranges the sub-ranges were only applied to the last value in the range.
* Only process the shortest matches in the numdb moduleArthur de Jong2021-04-111-0/+3
| | | | | | | | | | | | | | This ensures that matching numbers is done consistently when the numdb database file has conflicting information about the length of numbers. This also refactors the _find() function to be simpler and reduces the number of recursive calls that have to be done. The tests have been re-formatted to use pprint to make it easier to spot differences if any of the tests fail (instead of just saying expected True, got False). Closes https://github.com/arthurdejong/python-stdnum/issues/257
* Ensure 100% branch coverageArthur de Jong2017-08-281-0/+1
| | | | | | | | | | | This ensures that the tests fail if 100% branch coverage is not achieved. It also adds some pragma statements for code that cannot be covered or is Python version dependent. Furthermore, the get_module_list() function was removed from stdnum.util and more tests were made from stdnum.util and stdnum.numdb. The functionality to call format() in a country-specific IBAN implementation was also dropped because it was not used.
* Move numdb test fileArthur de Jong2015-10-101-0/+8
This places the test database file in the tests directory.