diff options
author | InfernalUnderling <42065091+InfernalUnderling@users.noreply.github.com> | 2019-11-26 17:08:37 +0000 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2019-11-27 00:08:37 +0700 |
commit | 9d30c2132acf2d12bfa8e559987c341c76d9cd24 (patch) | |
tree | ba8254c5601399d3ac36a35705c78c454bee75b1 /test/test_utils.py | |
parent | cf3c9eafad5e6b83788e15a605aa6804b1ab307c (diff) |
[utils] Handle rd-suffixed day parts in unified_strdate (#23199)
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 3920542bb..0db37d9d8 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -340,6 +340,8 @@ class TestUtil(unittest.TestCase): self.assertEqual(unified_strdate('July 15th, 2013'), '20130715') self.assertEqual(unified_strdate('September 1st, 2013'), '20130901') self.assertEqual(unified_strdate('Sep 2nd, 2013'), '20130902') + self.assertEqual(unified_strdate('November 3rd, 2019'), '20191103') + self.assertEqual(unified_strdate('October 23rd, 2005'), '20051023') def test_unified_timestamps(self): self.assertEqual(unified_timestamp('December 21, 2010'), 1292889600) |