Closed hertg closed 3 years ago
It looks like my IntelliJ IDEA did some whitespace-only changes to existing code when i hit the "reformat" shortcut.
In case you are not aware of that: You can hide the whitespace-only changes on the Github diff GUI, so only the changes that actually matter are highlighted :)
@hertg Thank you very much for this PR, and my apologies for the delay! We've been busy getting our release of the new www.topdecked.com ready for public use, and a few things have slipped by.
Looking at this now.
Looks great! All tests passing, and I agree with your changes. Merged!
This fixes the issues mentioned in the original post at #175.
However, the issue still persists when calling
formatDuration(Duration)
with a precise Duration that contains multiple units inside the same string.E.g. The following test would still fail:
That's because with the current API and without the necessary context information, this can't be solved without doing really dirty workarounds.
All the tests I've added run successfully. Funny enough, some of the others tests fail. But that was already the case before I applied my changes. Might be related to my system (?), would be good if anybody could take a look at that.