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