()
| 346 | |
| 347 | #[test] |
| 348 | fn valid_hours() { |
| 349 | let inputs = ["1 h", "1 hour", "1 hours", "1:00:00"]; |
| 350 | for input in inputs { |
| 351 | let parse_result = parse_interval_literal(input, SourceLocation::default()); |
| 352 | assert!(parse_result.is_ok()); |
| 353 | |
| 354 | if let Ok(interval) = parse_result { |
| 355 | assert_eq!(interval.hours, 1); |
| 356 | } |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | #[test] |
| 361 | fn valid_weeks() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…