Commit 5b1b0a1
authored
Return True from validate_national_checksum on success (#290)
BBAN.validate_national_checksum() returned False when the national checksum
was valid, while the no-checksum-algorithm branch returned True for the same
'valid' meaning. As documented, the method raises on an invalid checksum, so
the boolean return should be True when the checksum is valid. A valid IBAN
such as BE68539007547034 therefore wrongly reported False.1 parent 8a6811d commit 5b1b0a1
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
4 | 14 | | |
5 | 15 | | |
6 | 16 | | |
| |||
0 commit comments