sam
09/26/2021, 5:06 PMEmil Kantis
09/26/2021, 5:08 PMshouldForX
as aliases if you want?sam
09/26/2021, 5:22 PMcities.shouldForOne {
it.shouldHaveName("Chicago")
it.shouldHaveState("IL")
}
vs
cities.forOne {
it.shouldHaveName("Chicago")
it.shouldHaveState("IL")
}
Emil Kantis
09/26/2021, 5:43 PMforOne
reads better and it’s a lot cleaner. A downside to the aliases would be consistency, and knowing what to prefer.. I still think it would be great for discoverabilitysam
09/26/2021, 5:44 PMEmil Kantis
09/26/2021, 5:44 PMReplaceWith
each respective forX
version serve a purpose? Or do you think that would be bad practice?sam
09/26/2021, 5:44 PMEmil Kantis
09/26/2021, 5:44 PMsam
09/26/2021, 5:45 PMEmil Kantis
09/26/2021, 5:45 PMsam
09/26/2021, 5:46 PMEmil Kantis
09/26/2021, 5:47 PMsam
09/26/2021, 5:47 PMEmil Kantis
09/26/2021, 5:51 PMBoolean?
like
val x: Boolean? = null
x shouldNotBe true
where the plugin suggested that it should be replaced by
x shouldBe false
Did you pick that one up or perhaps that could be.a good thing to check out to learn a bit about the intellij plugin?sam
09/26/2021, 5:52 PMEmil Kantis
09/26/2021, 5:52 PMsam
09/26/2021, 5:52 PM