Emil Kantis
11/04/2021, 9:59 AMx
is not null in this case? Perhaps a specific shouldNotBeNull
matcher required?
var x: String? = "hello"
x shouldNotBe null
x!!.substring(2) shouldBe "he" // !! should not be necessary, since previous assertion checks that it is not null
Mervyn McCreight
11/04/2021, 10:02 AMx.shouldNotBeNull()
in place that does what you are searching for 🙂Emil Kantis
11/04/2021, 10:05 AMx
, so it would only find infix versions.. 🤦♂️