Skip to content

test: add test for chunk with empty array #5994

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

frontman-git
Copy link

Adds a missing test case for _.chunk([], 0) to ensure it returns an empty array as expected.

Although issue #5293 was closed, the discussion clarified that chunking an empty array should result in an empty array, not [[]]. This PR adds a test to explicitly document and guard this behavior.

@frontman-git frontman-git force-pushed the chunk-empty-array-test branch from b9a09e5 to 3744480 Compare June 5, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant