Improve assertion message.
This commit is contained in:
parent
a0eceeae8b
commit
6b2f79959d
1 changed files with 1 additions and 1 deletions
|
|
@ -24,6 +24,6 @@ class EnsureNeverCalled : () -> Unit {
|
||||||
|
|
||||||
class EnsureNeverCalledWithParam<T> : (T) -> Unit {
|
class EnsureNeverCalledWithParam<T> : (T) -> Unit {
|
||||||
override fun invoke(p1: T) {
|
override fun invoke(p1: T) {
|
||||||
throw AssertionError("Should not be called")
|
throw AssertionError("Should not be called and is called with $p1")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue