mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1425: The 'age' format rounds in odd ways
- While duration formats are still not configurable, the break points for formatting units is shifted to be a little more predictable. - Thanks to Black Ops testing.
This commit is contained in:
parent
ba098d790f
commit
253fd35dc7
3 changed files with 15 additions and 4 deletions
|
@ -372,8 +372,8 @@ class TestDateFormats(TestCase):
|
|||
def test_date_format_age(self):
|
||||
"""Verify due.age formatting"""
|
||||
code, out, err = self.t("xxx rc.report.xxx.columns:id,due.age")
|
||||
self.assertRegexpMatches(out, r'1\s+1d')
|
||||
self.assertRegexpMatches(out, r'2\s+-16h')
|
||||
self.assertRegexpMatches(out, r'1\s+[0-9.]+d')
|
||||
self.assertRegexpMatches(out, r'2\s+-[0-9.]+h')
|
||||
|
||||
def test_date_format_remaining(self):
|
||||
"""Verify due.remaining formatting"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue