Skip to content

Conversation

@nevans
Copy link
Collaborator

@nevans nevans commented May 31, 2025

The rdoc said it returned false, but it actually crashed. It's sometimes useful to make the distinction between invalid input and valid input with a false return value, so I've updated so invalid input returns nil (and updated the rdoc to match).

Also, some of the rdoc examples were simply wrong. Maybe a copy/paste error from #intersect?

nevans added 2 commits May 31, 2025 09:05
The rdoc said it returned `false`, but it actually crashed.  I've
fixed it to return `nil` and modified the docs to match.
@nevans nevans changed the title 🐛 Fix SequenceSet#include?: handling invalid inputs, bad rdoc example 🐛 Fix SequenceSet#include? handling of invalid inputs May 31, 2025
@nevans nevans merged commit 8c5bdc9 into master May 31, 2025
37 checks passed
@nevans nevans deleted the sequence_set/fix-include_p-invalid-input branch May 31, 2025 17:18
@nevans nevans added the bug Something isn't working label Jun 19, 2025
@nevans nevans added the sequence-set Any code the IMAP `sequence-set` data type or grammar rule, especially the SequenceSet class. label Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working sequence-set Any code the IMAP `sequence-set` data type or grammar rule, especially the SequenceSet class.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants