assertk / assertk.assertions / hasSameLengthAs

hasSameLengthAs

(common, jvm) fun Assert<CharSequence>.hasSameLengthAs(other: CharSequence): Unit

Asserts the char sequence has the same length as the expected one.