Improve assertion message.
This commit is contained in:
parent
7944804cd9
commit
fdc3c9ff39
1 changed files with 1 additions and 1 deletions
|
|
@ -24,6 +24,6 @@ class EnsureNeverCalled : () -> Unit {
|
|||
|
||||
class EnsureNeverCalledWithParam<T> : (T) -> Unit {
|
||||
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