beOneOf
doesn't tell you what value it was.
#2624
Labels
assertions 🔍
Related to the assertion mechanisms within the testing framework.
enhancement ✨
Suggestions for adding new features or improving existing ones.
Milestone
When using
beOneOf
, it doesn't tell you what it was if it's (not) in the collection.Example:
1 shouldBeOneOf listOf(2, 3)
Error:
Collection should contain the instance of value, but doesn't.
Suggested output:
<Value> was expected to be in the collection of <Collection>, but wasn't.
<Value> was not expected to be in the collection of <Collection>, but was.
Tested against 4.6.3, but from looking at master, looks like it hasn't been changed in 5.x -
kotest/kotest-assertions/kotest-assertions-core/src/commonMain/kotlin/io/kotest/matchers/collections/oneof.kt
Lines 84 to 96 in 375c1a6
The text was updated successfully, but these errors were encountered: