From 1aa3710aff48081cb1b1d6512fff0aa27a3187f0 Mon Sep 17 00:00:00 2001 From: Kyle Bloom Date: Thu, 2 Feb 2023 08:56:19 +0000 Subject: [PATCH] Remove redundant tests --- src/types.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/types.rs b/src/types.rs index c333d8fa..c3d0a45d 100644 --- a/src/types.rs +++ b/src/types.rs @@ -555,27 +555,6 @@ mod test { #[cfg(feature = "time")] use time::{format_description::well_known::Rfc3339, OffsetDateTime}; - #[cfg(feature = "time")] - #[test] - fn datetime_from_time_bounds() { - use std::convert::TryFrom; - - use super::DateTime; - use time::macros::datetime; - - // 1979-12-31 23:59:59 - assert!(DateTime::try_from(datetime!(1979-12-31 23:59:59 UTC)).is_err()); - - // 1980-01-01 00:00:00 - assert!(DateTime::try_from(datetime!(1980-01-01 00:00:00 UTC)).is_ok()); - - // 2107-12-31 23:59:59 - assert!(DateTime::try_from(datetime!(2107-12-31 23:59:59 UTC)).is_ok()); - - // 2108-01-01 00:00:00 - assert!(DateTime::try_from(datetime!(2108-01-01 00:00:00 UTC)).is_err()); - } - #[cfg(feature = "time")] #[test] fn datetime_try_from_bounds() {