assertk.assertions / extension

extension

fun <ERROR CLASS><File>.extension(): <ERROR CLASS>

Platform and version requirements: JVM

Returns an assert on the file's extension.