assertj / assertj/doc

Fix documentation/name for `AbstractMapAssert#containsOnlyKeys`

Open
#23 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
26
Forks
32
Avg merge
2d 9h
Merged PRs (30d)
3

Description

According to the method name and it's documentation I expect `assertThat(emptyMap()).containsOnlyKeys("x")` to NOT fail.

There's one example in the Javadoc that helps me understand the real semantics. However, I'd like to see that also in the text above, and ideally in the method name.

Related: https://math.stackexchange.com/questions/202452/why-is-predicate-all-as-in-allset-true-if-the-set-is-empty

See https://github.com/joel-costigliola/assertj-core/issues/200

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.