lambda-behave icon indicating copy to clipboard operation
lambda-behave copied to clipboard

ArrayExpectation.never() is broken

Open Maia-Everett opened this issue 5 years ago • 0 comments

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);

Maia-Everett avatar Mar 12 '20 12:03 Maia-Everett