strikt icon indicating copy to clipboard operation
strikt copied to clipboard

Add `String.doesNotContain`

Open StefMa opened this issue 2 years ago • 1 comments

I jsut realized an assertion on String.contains("") exist. I think it is usefull to add also an String.doesNotContain("").

expectThat("Something").contains("S") // true
expectThat("Something").doesNotContain("S") // false

StefMa avatar May 05 '23 08:05 StefMa

You should be able to do .not().contains("string") or .not { contains("string") }

dump247 avatar Jun 02 '23 04:06 dump247