Repository navigation
Tests: a moment too long to be a step is refused before it is converted - #39
Merged
Merged
Conversation
An address followed by @ and a run of more than 4,300 digits would make int() raise a plain ValueError, which find_ow_links, read_ow_link_at and the readers built on them do not catch. parse_ow_link reads the run's length first, and until now no test held that: with the length check taken out, every other test in tests/test_address.py still passed. Four cases (12 digits, 4,301 with and without a minus, 100,000) hold it for parse_ow_link, read_ow_link_at and find_ow_links. No change to the package's code. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests only, no change to the package's code.
An address followed by
@and a run of more than 4,300 digits would makeint()raise a plainValueError, whichfind_ow_links,read_ow_link_atand the readers built on them do not catch.parse_ow_linkreads the run's length before converting it, so the text is read as an address with no moment. No test held that check: with it taken out, every other test intests/test_address.pystill passed.Four cases (12 digits, 4,301 with and without a minus, 100,000) now hold it for
parse_ow_link,read_ow_link_atandfind_ow_links. With the length check removed, three of the four fail withValueError.🤖 Generated with Claude Code