()
| 153 | |
| 154 | #[test] |
| 155 | fn parse_hms_hours() { |
| 156 | let duration = parse_hms_time_inner().parse_text("1:1:1").unwrap(); |
| 157 | assert_eq!(duration.as_secs(), 3600 + 60 + 1); |
| 158 | |
| 159 | let duration = parse_hms_time_inner().parse_text("02:03:04").unwrap(); |
| 160 | assert_eq!(duration.as_secs(), 2 * 3600 + 3 * 60 + 4); |
| 161 | } |
| 162 | |
| 163 | #[test] |
| 164 | fn parse_hms_no_number() { |
nothing calls this directly
no test coverage detected