Skip to content

Commit

Permalink
Add None weekday conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasPius committed Apr 9, 2024
1 parent 34f2e3c commit 73d50ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,11 @@ mod tests {
)
.unwrap()
);

assert_eq!(
Option::<Weekday>::None,
serde_json::from_str(&serde_json::to_string(&Option::<Weekday>::None).unwrap())
.unwrap()
)
}
}

0 comments on commit 73d50ed

Please sign in to comment.