Skip to content

Commit d07bd9a

Browse files
committed
A few more date parser tests
1 parent 86ba33c commit d07bd9a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

UnitTests/Utils/DateParserTests.cs

+6
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public class DateParserTests
7575
"Feb 28 2025 12:15:00 AM -0500", // 12:15 AM with non-standard format
7676
"Feb 28 2025 11:30:00 PM -0500", // 11:30 PM with non-standard format
7777
"Fri, 28 Feb 2025 23:59:60 -0500", // leap second
78+
"Fri, 28 Feb 2025 23:59:61 -0500", // too many seconds
79+
"Fri, 28 Feb 2025 22:59:60 -0500", // leap second only valid if time is 23:59:60
80+
"Fri, 28 Feb 2025 23:60:59 -0500", // too many minutes
7881
};
7982

8083
static readonly string[] expected = {
@@ -120,6 +123,9 @@ public class DateParserTests
120123
"Fri, 28 Feb 2025 00:15:00 -0500",
121124
"Fri, 28 Feb 2025 23:30:00 -0500",
122125
"Fri, 28 Feb 2025 23:59:59 -0500",
126+
"Fri, 28 Feb 2025 00:00:00 -0500",
127+
"Fri, 28 Feb 2025 00:00:00 -0500",
128+
"Fri, 28 Feb 2025 00:00:00 -0500",
123129
};
124130

125131
[Test]

0 commit comments

Comments
 (0)