Slide 7
Slide 7 text
The Problem
@Test fun testMyTokenLength() {
val token : String? = getMyToken();
assertNotNull(token)
assertEquals(42, token.length)
}
Error(5, 22): Only safe (?.) or non-null
asserted (!!.) calls are allowed on a
nullable receiver of type String?