https://kotlinlang.org logo
#kotest
Title
# kotest
g

gavvvr

03/04/2024, 6:15 PM
Hey! What is the reason why the signature of the
shouldBeSortedBy
transformation is
(T) -> E
(without
null
support)? The
sortedBy
function from Kotlin stdlib perfectly accepts transformation to potentially null values (
(T) -> R?
), where nulls will be treated as "less than any value". I would expected KoTest's
shouldBeSortedBy
to behave the same way