Skip to content

fix: correct GUIDerator size-bounds error message (20 is inclusive) - #451

Draft
nikolauspschuetz wants to merge 1 commit into
mahmoud:masterfrom
nikolauspschuetz:fix-guiderator-size-message
Draft

fix: correct GUIDerator size-bounds error message (20 is inclusive)#451
nikolauspschuetz wants to merge 1 commit into
mahmoud:masterfrom
nikolauspschuetz:fix-guiderator-size-message

Conversation

@nikolauspschuetz

Copy link
Copy Markdown

GUIDerator.__init__ guards with if size < 20 or size > 36, so size == 20 is accepted — and the docstring says "Lengths between 20 and 36 are considered valid". But the error message says expected 20 < size <= 36, excluding 20. So GUIDerator(size=20) succeeds while the message claims 20 is invalid.

Corrected the message to 20 <= size <= 36 to match the check and the docstring. Added a regression test covering the inclusive lower bound and the message.

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