| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
If a numdb data file line contains multiple values or ranges the
sub-ranges were only applied to the last value in the range.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
This places the test database file in the tests directory.
|