()
| 1253 | |
| 1254 | #[test] |
| 1255 | fn limits() { |
| 1256 | assert!(matches!(minutes_expr("60"), Err(_))); |
| 1257 | assert!(matches!(minutes_expr("0-60"), Err(_))); |
| 1258 | // a step greater than the max value is not allowed (since it doesn't make sense) |
| 1259 | assert!(matches!(minutes_expr("0/60"), Err(_))); |
| 1260 | assert!(matches!(minutes_expr("0-60/5"), Err(_))); |
| 1261 | // a step of 0 is not allowed (since it doesn't make sense) |
| 1262 | assert!(matches!(minutes_expr("0/0"), Err(_))); |
| 1263 | assert!(matches!(minutes_expr("0-59/0"), Err(_))); |
| 1264 | } |
| 1265 | } |
| 1266 | |
| 1267 | mod hours { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…