()
| 380 | |
| 381 | #[test] |
| 382 | fn valid_seconds() { |
| 383 | let inputs = ["10.1 second"]; |
| 384 | |
| 385 | for input in inputs { |
| 386 | let parse_result = parse_interval_literal(input, SourceLocation::default()); |
| 387 | assert!(parse_result.is_ok()); |
| 388 | |
| 389 | if let Ok(interval) = parse_result { |
| 390 | assert_eq!(interval.seconds, 10.1); |
| 391 | } |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | #[test] |
| 396 | fn ago_direction() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…