-
Notifications
You must be signed in to change notification settings - Fork 89
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 string.split() #1841
Conversation
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.
Looks good, although I may have a couple more comments once I implement this and run the tests against the implementation.
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.
A couple missing tests I only noticed once I started in on the implementation:
- The function should return a comma separator even for empty and single-element lists.
- The function should accept unquoted strings, and should return an unquoted string if
$string
is unquoted.
There are a couple other small things, but I can auto-update them once I have write access to the PR.
Added new tests for unquoted strings and checking the separator type for empty and single-element lists in 175359d. I think this covers the changes requested. |
Test failures should be fixed when sass/embedded-host-node#175 lands. |
Closes: #1832
See: sass/sass#1950
[skip dart-sass]