Colton Idle
12/11/2023, 5:47 PMwhen (val foo = something) {
is One -> fail() <===== I just want to fail if foo is of type One
is Two -> assertThat(bar).isNotEmpty()
null -> TODO()
}
thanksforallthefish
12/12/2023, 7:00 AMColton Idle
12/12/2023, 7:11 AMthanksforallthefish
12/12/2023, 7:22 AMTruth.assert_().fail()
, but I like hacks 😄
import com.google.common.truth.Truth
Truth.assert_().withMessage("something something").fail()
though it prints the message twice to meKlitos Kyriacou
12/12/2023, 9:04 AM