mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Added tests with spaces around the operators, for better coverage.
This commit is contained in:
parent
7e890c084f
commit
c849cc9bfe
1 changed files with 10 additions and 0 deletions
|
@ -41,6 +41,16 @@ class TestPartialMatch(TestCase):
|
|||
def setUpClass(cls):
|
||||
cls.t = Task()
|
||||
|
||||
def test_partial_date_match_spaced(self):
|
||||
"""Partial match for dates: today = now --> true"""
|
||||
code, out, err = self.t(('calc', 'today = now'))
|
||||
self.assertIn('true', out)
|
||||
|
||||
def test_exact_date_match_spaced(self):
|
||||
"""Exact match for dates: today == now --> false"""
|
||||
code, out, err = self.t(('calc', 'today == now'))
|
||||
self.assertIn('false', out)
|
||||
|
||||
def test_partial_date_match(self):
|
||||
"""Partial match for dates: today=now --> true"""
|
||||
code, out, err = self.t(('calc', 'today=now'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue