We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e0cb3a commit e3f15e9Copy full SHA for e3f15e9
assertk/src/commonMain/kotlin/assertk/assertions/iterable.kt
@@ -158,7 +158,7 @@ inline fun <reified T> Assert<Iterable<*>>.containsInstanceOf(): Assert<List<T>>
158
* ```
159
*/
160
inline fun <reified T> Assert<Iterable<*>>.doesNotContainInstanceOf() = given { actual ->
161
- if (actual.none { it is T }) expected("to not contain instances of ${T::class} but was $actual")
+ if (actual.any { it is T }) expected("to not contain instances of ${T::class} but was $actual")
162
}
163
164
/**
0 commit comments