Skip to content

Reject incorrect lengths in direct ISBN validators - #1

Merged
ctoth merged 3 commits into
masterfrom
modernize/task6-isbn_utils
Oct 21, 2026
Merged

ctoth merged 3 commits into
masterfrom
modernize/task6-isbn_utils

Conversation

@ctoth

@ctoth ctoth commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Direct ISBN validators accepted incorrect lengths, and ISBN-13 raised IndexError for an empty string. Require ten or thirteen characters before checksum validation and add regression coverage. Declare the existing test runner with a Python 3.8 compatible lower bound.

Validation: regressions reproduced seven failures before the fix; all 12 tests pass on Python 3.8 and 3.13. Pyright and Ruff pass.

@ctoth
ctoth force-pushed the modernize/task6-isbn_utils branch from 4fd7ab3 to 1808149 Compare October 20, 2026 23:53
@ctoth
ctoth marked this pull request as ready for review October 21, 2026 03:41
@ctoth
ctoth merged commit 82a22bc into master Oct 21, 2026
2 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.

1 participant