From 33f26438b4d5ef17133887ef97a02ea811040b54 Mon Sep 17 00:00:00 2001 From: jarbasal Date: Wed, 11 Dec 2019 07:10:45 +0000 Subject: [PATCH] additional tests --- test/test_parse.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_parse.py b/test/test_parse.py index 31cf3b63..b010c5d0 100644 --- a/test/test_parse.py +++ b/test/test_parse.py @@ -483,6 +483,12 @@ def testExtract(text, expected_date, expected_leftover): # TODO this test is imperfect due to "at night" in the reminder, but let is pass since the date is correct testExtract("lets meet later at night", "2017-06-27 22:00:00", "lets meet later at night") + # TODO this test is imperfect due to "night" in the reminder, but let is pass since the date is correct + testExtract("what's the weather like tomorrow night", + "2017-06-28 22:00:00", "what is weather like night") + # TODO this test is imperfect due to "night" in the reminder, but let is pass since the date is correct + testExtract("what's the weather like next tuesday night", + "2017-07-04 22:00:00", "what is weather like night") def test_extract_ambiguous_time_en(self): morning = datetime(2017, 6, 27, 8, 1, 2)