mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 18:06:42 +02:00
tests: Definition of someday is in year 9999 now
This commit is contained in:
parent
9ed047d46d
commit
59c20a782d
1 changed files with 4 additions and 4 deletions
|
@ -142,19 +142,19 @@ class TestBug1687(TestCase):
|
||||||
"""1687: The named date 'som' should take precedence over 'someday', for an exact match"""
|
"""1687: The named date 'som' should take precedence over 'someday', for an exact match"""
|
||||||
self.t("rc.abbreviation.minimum=2 add one due:som")
|
self.t("rc.abbreviation.minimum=2 add one due:som")
|
||||||
code, out, err = self.t("_get 1.due.year")
|
code, out, err = self.t("_get 1.due.year")
|
||||||
self.assertNotEqual("2038\n", out)
|
self.assertNotEqual("9999\n", out)
|
||||||
|
|
||||||
self.t("rc.abbreviation.minimum=3 add two due:som")
|
self.t("rc.abbreviation.minimum=3 add two due:som")
|
||||||
code, out, err = self.t("_get 2.due.year")
|
code, out, err = self.t("_get 2.due.year")
|
||||||
self.assertNotEqual("2038\n", out)
|
self.assertNotEqual("9999\n", out)
|
||||||
|
|
||||||
self.t("rc.abbreviation.minimum=4 add three due:som")
|
self.t("rc.abbreviation.minimum=4 add three due:som")
|
||||||
code, out, err = self.t("_get 3.due.year")
|
code, out, err = self.t("_get 3.due.year")
|
||||||
self.assertNotEqual("2038\n", out)
|
self.assertNotEqual("9999\n", out)
|
||||||
|
|
||||||
self.t("rc.abbreviation.minimum=4 add three due:some")
|
self.t("rc.abbreviation.minimum=4 add three due:some")
|
||||||
code, out, err = self.t("_get 4.due.year")
|
code, out, err = self.t("_get 4.due.year")
|
||||||
self.assertEqual("2038\n", out)
|
self.assertEqual("9999\n", out)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue