i'm having the hardest time trying to test this: ...
# kotest
j
i'm having the hardest time trying to test this:
Copy code
if (other !is CustomObject) return false
if i use:
Copy code
CustomObject() shouldNotBe "1"
JaCoCo has it covered. But when I use
Copy code
val otherObject: Any? = CustomObject()
(otherObject is CustomObject) shouldBe true
it misses that branch. do y'all have any insight on this? thanks!