Skip to content

Commit fc67f3e

Browse files
committed
Remove obsolete test
1 parent acb693a commit fc67f3e

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/datetime/tests.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,41 +1499,6 @@ fn test_core_duration_max() {
14991499
utc_dt += Duration::MAX;
15001500
}
15011501

1502-
#[test]
1503-
#[cfg(all(target_os = "windows", feature = "clock"))]
1504-
fn test_from_naive_date_time_windows() {
1505-
let min_year = NaiveDate::from_ymd_opt(1601, 1, 3).unwrap().and_hms_opt(0, 0, 0).unwrap();
1506-
1507-
let max_year = NaiveDate::from_ymd_opt(30827, 12, 29).unwrap().and_hms_opt(23, 59, 59).unwrap();
1508-
1509-
let too_low_year =
1510-
NaiveDate::from_ymd_opt(1600, 12, 29).unwrap().and_hms_opt(23, 59, 59).unwrap();
1511-
1512-
let too_high_year = NaiveDate::from_ymd_opt(30829, 1, 3).unwrap().and_hms_opt(0, 0, 0).unwrap();
1513-
1514-
let _ = Local.from_utc_datetime(&min_year);
1515-
let _ = Local.from_utc_datetime(&max_year);
1516-
1517-
let _ = Local.from_local_datetime(&min_year);
1518-
let _ = Local.from_local_datetime(&max_year);
1519-
1520-
let local_too_low = Local.from_local_datetime(&too_low_year);
1521-
let local_too_high = Local.from_local_datetime(&too_high_year);
1522-
1523-
assert_eq!(local_too_low, LocalResult::None);
1524-
assert_eq!(local_too_high, LocalResult::None);
1525-
1526-
let err = std::panic::catch_unwind(|| {
1527-
Local.from_utc_datetime(&too_low_year);
1528-
});
1529-
assert!(err.is_err());
1530-
1531-
let err = std::panic::catch_unwind(|| {
1532-
Local.from_utc_datetime(&too_high_year);
1533-
});
1534-
assert!(err.is_err());
1535-
}
1536-
15371502
#[test]
15381503
#[cfg(feature = "clock")]
15391504
fn test_datetime_local_from_preserves_offset() {

0 commit comments

Comments
 (0)