Skip to content

Commit

Permalink
additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 11, 2019
1 parent b4501d5 commit 33f2643
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 33f2643

Please sign in to comment.