Skip to content

Detect misuse of containsAtLeast #65

Description

@yogurtearl

containsAtLeast use varargs to list the elements, it does not contain a collection.

Something like this:

assertThat(listOf(1, 2, 3)).containsAtLeast(listOf(1, 2))

was probably intended to be this (pass in using vararg not as a list):

assertThat(listOf(1,2,3)).containsAtLeast(1, 2)

Would be great to detect and provide a quick fix for this.

Related to:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions