Skip to content

Commit

Permalink
fun
Browse files Browse the repository at this point in the history
  • Loading branch information
mareklangiewicz committed Nov 30, 2023
1 parent 16a4a23 commit 7274f49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ infix fun <T> TestObserver<*>.hasNowType(predicate: T.() -> Boolean) {
}


infix fun <T> Consumer<T>.put(value: T) = accept(value)
infix fun <T: Any> Consumer<T>.put(value: T) = accept(value)

infix fun <T> Collection<T>.hasNo(t: T) = assertEquals(0, count { it == t })

Expand Down

0 comments on commit 7274f49

Please sign in to comment.