Skip to content

contains assertion fails with empty input if actual is not empty #4159

@scordio

Description

@scordio

While investigating #4157, I realized that contains and containsAll behave differently with an empty input:

  • contains throws an IllegalArgumentException
  • containsAll succeeds

Should contains also accept an empty input?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions