()
| 227 | |
| 228 | #[test] |
| 229 | fn cron_timezone_format_roundtrip() { |
| 230 | for s in ["+05:30", "-08:00", "+00:00", "+18:00", "-18:00", "+12:45"] { |
| 231 | let parsed = CronTimezone::parse(s).unwrap(); |
| 232 | assert_eq!(parsed.as_string(), s, "roundtrip failed for '{s}'"); |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | #[test] |
| 237 | fn cron_timezone_iana_rejected() { |