strikt-core / strikt.assertions / extension

extension

val <T : File> Builder<T>.extension: Builder<String>

Maps this assertion to an assertion on the file extension (not including the dot) or empty string if it not have one.

See Also

File.extension