kotest-assertions-core / io.kotest.matchers.string / beEqualIgnoringCase

beEqualIgnoringCase

fun beEqualIgnoringCase(other: String): Matcher<String?>

Matcher that matches strings that are equal when case is not considered

Verifies that a specific String is equal to another String when case is not considered.

"foo" should beEqualIgnoringCase("FoO")   // Assertion passes

"bar shouldNot beEqualIgnoringCase("BoB") // Assertion passes