Skip to content

Conversation

@nevans
Copy link
Collaborator

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.
@nevansnevans changed the title 🐛 Fix SequenceSet#include?: handling invalid inputs, bad rdoc example🐛 Fix SequenceSet#include? handling of invalid inputsMay 31, 2025
@nevansnevans merged commit 8c5bdc9 into masterMay 31, 2025
37 checks passed
@nevansnevans deleted the sequence_set/fix-include_p-invalid-input branch May 31, 2025 17:18
@nevansnevans added the bug Something isn't working label Jun 19, 2025
@nevansnevans 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugSomething isn't workingsequence-setAny 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

@nevans