Skip to content

Commit e3f15e9

Browse files
committed
Flip logic
1 parent 9e0cb3a commit e3f15e9

File tree

1 file changed

+1
-1
lines changed
  • assertk/src/commonMain/kotlin/assertk/assertions

1 file changed

+1
-1
lines changed

assertk/src/commonMain/kotlin/assertk/assertions/iterable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ inline fun <reified T> Assert<Iterable<*>>.containsInstanceOf(): Assert<List<T>>
158158
* ```
159159
*/
160160
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")
161+
if (actual.any { it is T }) expected("to not contain instances of ${T::class} but was $actual")
162162
}
163163

164164
/**

0 commit comments

Comments
 (0)