kotlin.test / kotlin.test / assertSame assertSame Common JVM JS Native 1.0 fun <T> assertSame( expected: T, actual: T, message: String? = null): Unit(source) Asserts that expected is the same instance as actual, with an optional message.