jw
07/26/2019, 1:41 AMTestClock feels like it should have `plusAssign`/`minusAssign` of a Duration as a convenience. clock += 2.minutesjw
07/26/2019, 1:44 AMreading += amount.toLong(durationUnit)jw
07/26/2019, 1:46 AMTestClock without also passing in a DurationUnit. Otherwise someone might create an instance that ticks in seconds whereas i'm trying to test for millisecond behaviorilya.gorbunov
07/26/2019, 1:55 AMjw
07/26/2019, 2:02 AMdurationUnit being a public val on TestClock to avoid the not knowing what units you're in, but now I'm wondering whether both values should be entirely implementation detail.jw
07/26/2019, 2:07 AMjw
07/26/2019, 2:08 AMval to expose the current "time"? now it sounds like I'm reinventing what's already there...
I think I'm back to making durationUnit a public val in TestClock simple smile (with plusAssign/minusAssign for convenience still)ilya.gorbunov
08/08/2019, 7:50 PMplusAssign operator in TestClock and hide its other implementation details (reading and unit).