-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for Object.groupBy
and Map.groupBy
with string items
#4038
Conversation
Co-authored-by: Jordan Harband <[email protected]>
Co-authored-by: Jordan Harband <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not much to add to what Jordan said.
For me this is also fine to merge as is, but as long as we're on the topic of grouping strings with weird edge cases: if you felt like doing extra work, I think it might help to have coverage for ASCII strings (to help debuggability in case an implementation gets single characters right but surrogate pairs wrong) and grapheme clusters (like 👨👦 being split into 👨, ZWJ, and 👦.)
Thanks for contributing!
@ptomato Thank you for your review. I would like this PR to be merged as is. Maybe I'll send a PR to add test cases later. |
@sosukesuzuki Works for me. I'll merge this now and copy my comment into #4036 for whoever picks it up. |
Fixes #4036