You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skipping whitespace happens immediately before `input[0]`. But skipping
the whitespace could lead to `input` being empty.
We handle the empty case and add a regression test.
Fixes#359
@r###"failed to parse RFC 2822 datetime into Jiff zoned datetime: expected day at beginning of RFC 2822 datetime since first non-whitespace byte, "W", is not a digit, but given string is too short (length is 3)"###,
1788
1792
);
1793
+
insta::assert_snapshot!(
1794
+
p("Wed "),
1795
+
@"failed to parse RFC 2822 datetime into Jiff zoned datetime: expected comma after parsed weekday `Wed` in RFC 2822 datetime, but found end of string instead",
1796
+
);
1797
+
insta::assert_snapshot!(
1798
+
p("Wed ,"),
1799
+
@"failed to parse RFC 2822 datetime into Jiff zoned datetime: expected day, but found end of input",
1800
+
);
1801
+
insta::assert_snapshot!(
1802
+
p("Wed , "),
1803
+
@"failed to parse RFC 2822 datetime into Jiff zoned datetime: expected day, but found end of input",
1804
+
);
1789
1805
insta::assert_snapshot!(
1790
1806
p("Wat, "),
1791
1807
@r###"failed to parse RFC 2822 datetime into Jiff zoned datetime: expected day at beginning of RFC 2822 datetime since first non-whitespace byte, "W", is not a digit, but did not recognize "Wat" as a valid weekday abbreviation"###,
0 commit comments