adam-mcneilly08/29/2018, 1:22 PM
function in Kotlin test requires a non null boolean. What is the most idiomatic way to handle a nullable boolean?
is one. We could also invert it and say
assertFalse(condition ?: true)
but honestly I wish I could just pass a nullable boolean. I'm not sure why we couldn't.
assertTrue(condition == false)
spand08/29/2018, 1:26 PM
gildor08/29/2018, 5:49 PM