Add samples for coerceAtMost
#KT-20357
This commit is contained in:
@@ -26,4 +26,9 @@ class ComparableOps {
|
||||
assertPrints(10.coerceAtLeast(20), "20")
|
||||
}
|
||||
|
||||
@Sample
|
||||
fun coerceAtMost() {
|
||||
assertPrints(10.coerceAtMost(5), "5")
|
||||
assertPrints(10.coerceAtMost(20), "10")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user