From c849cc9bfe4d0498cff14b071d53c5355767421e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 28 Feb 2015 12:00:36 -0500 Subject: [PATCH] Unit Tests - Added tests with spaces around the operators, for better coverage. --- test/partial.t | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/partial.t b/test/partial.t index ab3deedd7..f695af5cb 100755 --- a/test/partial.t +++ b/test/partial.t @@ -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'))