ignoring
infix fun <T : CharSequence> CharSequenceContains.EntryPointStep<T, NoOpSearchBehaviour>.ignoring(case: case): CharSequenceContains.EntryPointStep<T, IgnoringCaseSearchBehaviour>(source)
Defines that the search behaviour ignore case shall be applied to this sophisticated contains assertion.
Return
The newly created builder.
Parameters
case
Has to be case.
Samples
expect("ABC") toContain o ignoring case exactly 1 value "a"
expect("ABbC") toContain o ignoring case atLeast 2 value "b"
fails {
expect("AAAaaa") toContain o ignoring case atMost 3 value "a"
}infix fun <T : CharSequence> NotCheckerStep<T, NotSearchBehaviour>.ignoring(case: case): NotCheckerStep<T, IgnoringCaseSearchBehaviour>(source)
Defines that the search behaviour ignore case shall be applied to this sophisticated contains not assertion.
Return
The newly created builder.
Parameters
case
Has to be case.
Samples
expect("ABC") notToContain o ignoring case value "d"
fails { // because it contains a `d` which is the same as a `D` when case is ignored
expect("abcd") notToContain o ignoring case value "D"
}