• Home
  • Raw
  • Download

Lines Matching refs:is_err

1577     assert!(from_str(r#""""#).is_err());  in test_decodable_json()
1578 assert!(from_str(r#""2016-07-08""#).is_err()); in test_decodable_json()
1579 assert!(from_str(r#""09:10:48.090""#).is_err()); in test_decodable_json()
1580 assert!(from_str(r#""20160708T091048.090""#).is_err()); in test_decodable_json()
1581 assert!(from_str(r#""2000-00-00T00:00:00""#).is_err()); in test_decodable_json()
1582 assert!(from_str(r#""2000-02-30T00:00:00""#).is_err()); in test_decodable_json()
1583 assert!(from_str(r#""2001-02-29T00:00:00""#).is_err()); in test_decodable_json()
1584 assert!(from_str(r#""2002-02-28T24:00:00""#).is_err()); in test_decodable_json()
1585 assert!(from_str(r#""2002-02-28T23:60:00""#).is_err()); in test_decodable_json()
1586 assert!(from_str(r#""2002-02-28T23:59:61""#).is_err()); in test_decodable_json()
1587 assert!(from_str(r#""2016-07-08T09:10:48,090""#).is_err()); in test_decodable_json()
1588 assert!(from_str(r#""2016-07-08 09:10:48.090""#).is_err()); in test_decodable_json()
1589 assert!(from_str(r#""2016-007-08T09:10:48.090""#).is_err()); in test_decodable_json()
1590 assert!(from_str(r#""yyyy-mm-ddThh:mm:ss.fffffffff""#).is_err()); in test_decodable_json()
1591 assert!(from_str(r#"20160708000000"#).is_err()); in test_decodable_json()
1592 assert!(from_str(r#"{}"#).is_err()); in test_decodable_json()
1594 assert!(from_str(r#"{"date":{"ymdf":20},"time":{"secs":0,"frac":0}}"#).is_err()); in test_decodable_json()
1595 assert!(from_str(r#"null"#).is_err()); in test_decodable_json()
2405 assert!("".parse::<NaiveDateTime>().is_err()); in test_datetime_from_str()
2406 assert!("x".parse::<NaiveDateTime>().is_err()); in test_datetime_from_str()
2407 assert!("15".parse::<NaiveDateTime>().is_err()); in test_datetime_from_str()
2408 assert!("15:8:9".parse::<NaiveDateTime>().is_err()); in test_datetime_from_str()
2409 assert!("15-8-9".parse::<NaiveDateTime>().is_err()); in test_datetime_from_str()
2410 assert!("2015-15-15T15:15:15".parse::<NaiveDateTime>().is_err()); in test_datetime_from_str()
2411 assert!("2012-12-12T12:12:12x".parse::<NaiveDateTime>().is_err()); in test_datetime_from_str()
2412 assert!("2012-123-12T12:12:12".parse::<NaiveDateTime>().is_err()); in test_datetime_from_str()
2413 assert!("+ 82701-123-12T12:12:12".parse::<NaiveDateTime>().is_err()); in test_datetime_from_str()
2414 assert!("+802701-123-12T12:12:12".parse::<NaiveDateTime>().is_err()); // out-of-bound in test_datetime_from_str()
2441 .is_err()); in test_datetime_parse_from_str()
2442 assert!(NaiveDateTime::parse_from_str("2014-5-7 12:3456", "%Y-%m-%d %H:%M:%S").is_err()); in test_datetime_parse_from_str()
2443 assert!(NaiveDateTime::parse_from_str("12:34:56", "%H:%M:%S").is_err()); // insufficient in test_datetime_parse_from_str()