assertk / assertk.assertions / hasExtension

hasExtension

(jvm) fun Assert<File>.hasExtension(expected: String): Unit

Asserts the file has the expected extension.