Skip to content

Commit

Permalink
Add test with full year
Browse files Browse the repository at this point in the history
  • Loading branch information
akoumjian committed Aug 2, 2020
1 parent 2790dbe commit 0b86495
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_find_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
("01/02/03", datetime(2003, 1, 2, 0, 0, 0, 0), "month"),
("01/02/03", datetime(2003, 2, 1, 0, 0, 0, 0), "day"),
("01/02/03", datetime(2001, 2, 3, 0, 0, 0, 0), "year"),
("02/05/2020", datetime(2020, 2, 5, 0, 0, 0, 0), "month"),
("02/05/2020", datetime(2020, 5, 2, 0, 0, 0, 0), "day"),
],
)
def test_find_date_strings(input_text, expected_date, first):
Expand Down

0 comments on commit 0b86495

Please sign in to comment.