Duration default toString: use 0, 1, 2, 3, 6, or 9 decimal digits

KT-42851
This commit is contained in:
Ilya Gorbunov
2021-07-07 03:36:14 +03:00
committed by Space
parent 7551719b85
commit 682cb8e34a
3 changed files with 18 additions and 18 deletions
@@ -30,7 +30,7 @@ class Durations {
assertPrints(Duration.minutes(1230), "20h 30m")
assertPrints(Duration.minutes(920), "15h 20m")
assertPrints(Duration.seconds(1.546), "1.546s")
assertPrints(Duration.milliseconds(25.12), "25.120ms")
assertPrints(Duration.milliseconds(25.12), "25.12ms")
}
@Sample