sopel-irc / sopel

:robot::speech_balloon: An easy-to-use and highly extensible IRC Bot framework. Formerly Willie.
https://sopel.chat
Other
950 stars 405 forks source link

test: add capabilities test cases for trailing space handling #2505

Closed dgw closed 10 months ago

dgw commented 10 months ago

Some IRCds include trailing space in capability lists, and this is not a spec violation. Default .split() behavior in Python should handle it fine, but it's also good to be explicit that we expect the default behavior, through tests.

Checklist

Notes

Inspired by ircv3/ircv3-specifications#530, which is not yet merged. However, since this is de facto behavior by UnrealIRCd and InspIRCd that isn't likely to change very soon even if the spec amendment is rejected, I think we should just add the tests.

Review requested from @Exirel specifically because the new capability system is his baby, and he's the most likely one to point out any incorrect assumptions I might have had about how to adapt existing test cases for this purpose.

dgw commented 10 months ago

Spec clarification was merged 🎉