Skip to content

ArrayExpectation.never() is broken #100

@Maia-Everett

Description

@Maia-Everett

The current implementation of ArrayExpectation.never does nothing, creating a new BoundExpectation object that is immediately discarded and returning this unchanged. Because of this, the expectation conditions are not reversed.

The proper implementation should presumably be

return new ArrayExpectation<>(objectUnderTest, !positive);

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