assertk / assertk.assertions / hasLength

hasLength

(common, jvm) fun Assert<CharSequence>.hasLength(length: Int): Unit

Asserts the char sequence has the expected length.