Skip to content

Commit

Permalink
More coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Aug 8, 2024
1 parent 27b36b3 commit 0bb11b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,10 @@ fn rfc_3339_err() {
OffsetDateTime::parse("2021-01-0", &Rfc3339),
invalid_component!("day")
));
// (note: any separator is allowed by RFC 3339)
assert!(matches!(
OffsetDateTime::parse("2021-01-01", &Rfc3339),
invalid_component!("separator")
));
assert!(matches!(
OffsetDateTime::parse("2021-01-01T0", &Rfc3339),
invalid_component!("hour")
Expand Down

0 comments on commit 0bb11b1

Please sign in to comment.