Some tests use empty containers to test for corner cases, while in other tests, an empty container is not sensible. We add a flag to specify if an empty container is acceptable.
Type of change
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Checklist before requesting a review
[x] I have performed a self-review of my code.
[x] If it is a core feature, I have added thorough tests.
[ ] If this is a new component I have added examples.
[ ] I updated the README and related documentation.
Description
Some tests use empty containers to test for corner cases, while in other tests, an empty container is not sensible. We add a flag to specify if an empty container is acceptable.
Type of change
Checklist before requesting a review