mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Test: Added test to make sure 'ids' compresses consecutive IDs into a range
This commit is contained in:
parent
c6826a86bb
commit
4b1bdf4423
1 changed files with 6 additions and 0 deletions
|
@ -88,6 +88,12 @@ class TestIDs(TestCase):
|
|||
self.assertRegexpMatches(
|
||||
out, "{0}:one\n{0}:two\n{0}:three\n{0}:five".format(UUID_REGEXP))
|
||||
|
||||
def test_ids_ranges(self):
|
||||
"""Verify consecutive IDs are compressed into a range"""
|
||||
code, out, err = self.t("1 2 3 4 5 ids")
|
||||
self.assertIn("1-5", out)
|
||||
|
||||
|
||||
class TestIDMisParse(TestCase):
|
||||
def setUp(self):
|
||||
"""Executed before each test in the class"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue