TEST: assertEquals msg paramter is optional
This commit is contained in:
committed by
vvlevchenko
parent
201ee72b15
commit
661d66477c
@@ -2,4 +2,4 @@ package kotlin.test
|
||||
|
||||
class TestFailedException(val msg:String):RuntimeException(msg)
|
||||
|
||||
fun <T> assertEquals(a:T, b:T, msg:String) { if (a != b) throw TestFailedException(msg) }
|
||||
fun <T> assertEquals(a:T, b:T, msg:String = "") { if (a != b) throw TestFailedException(msg) }
|
||||
Reference in New Issue
Block a user