From 9460a28729d2cdde4ed56adccd3130e1bf27be38 Mon Sep 17 00:00:00 2001 From: jtmoon79 <815261+jtmoon79@users.noreply.github.com> Date: Tue, 18 Oct 2022 23:39:18 -0700 Subject: [PATCH] Add tests for timezone parsing whitespace and colon Add tests for timezone parsing infinite whitespace and colons. Prepatory tests for next commit around constraining timezone and colons. --- src/datetime/tests.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/datetime/tests.rs b/src/datetime/tests.rs index d0fd16ded7..24a5fde981 100644 --- a/src/datetime/tests.rs +++ b/src/datetime/tests.rs @@ -751,6 +751,11 @@ fn test_parse_datetime_utc() { "2001-02-03T04:05:06+0000", "2001-02-03T04:05:06-00:00", "2001-02-03T04:05:06-01:00", + "2001-02-03T04:05:06-01: 00", + "2001-02-03T04:05:06-01 :00", + "2001-02-03T04:05:06-01 : 00", + "2001-02-03T04:05:06-01 : 00", + "2001-02-03T04:05:06-01 : :00", "2012-12-12T12:12:12Z", "2015-02-18T23:16:09.153Z", "2015-2-18T23:16:09.153Z",