1
0
mirror of https://github.com/bspeice/dtparse synced 2025-07-01 05:46:14 -04:00

Continuing to clean up tests

This commit is contained in:
Bradlee Speice
2018-06-17 22:39:06 -04:00
parent 965aed40e3
commit 8787e321e2
3 changed files with 63 additions and 34 deletions

View File

@ -678,6 +678,19 @@ fn test_parse_default45() {
Some(default_rsdate), false, HashMap::new());
}
#[test]
fn test_parse_default46() {
let info = ParserInfo::default();
let default_rsdate = &NaiveDate::from_ymd(2003, 9, 25).and_hms(0, 0, 0);
let pdt = PyDateTime {
year: 2017, month: 11, day: 25,
hour: 2, minute: 17, second: 0,
micros: 0, tzo: None
};
parse_and_assert(pdt, info, "02:17NOV2017", None, None, false, false,
Some(default_rsdate), false, HashMap::new());
}
#[test]
fn test_parse_simple0() {
let pdt = PyDateTime {
@ -1298,16 +1311,6 @@ fn test_parse_simple61() {
parse_and_assert_simple(pdt, "2015-15-May");
}
#[test]
fn test_parse_simple62() {
let pdt = PyDateTime {
year: 2017, month: 11, day: 13,
hour: 2, minute: 17, second: 0,
micros: 0, tzo: None,
};
parse_and_assert_simple(pdt, "02:17NOV2017");
}
#[test]
fn test_parse_tzinfo0() {
let info = ParserInfo::default();