| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use warnings; |
| 4 | use strict; |
| 5 | use Test::Inter; |
| 6 | $::ti = new Test::Inter $0; |
| 7 | require "tests.pl"; |
| 8 | |
| 9 | my $obj = new Date::Manip::Recur; |
| 10 | $obj->config("forcedate","2000-01-21-00:00:00,America/New_York"); |
| 11 | |
| 12 | sub test { |
| 13 | my (@test)=@_; |
| 14 | my $err = $obj->frequency(@test); |
| 15 | if ($err) { |
| 16 | return $obj->err(); |
| 17 | } else { |
| 18 | my @ret = @{ $$obj{"data"}{"interval"} }; |
| 19 | push(@ret,"*"); |
| 20 | foreach my $v (@{ $$obj{"data"}{"rtime"} }) { |
| 21 | my $str = ""; |
| 22 | foreach my $v2 (@$v) { |
| 23 | $str .= "," if ($str ne ""); |
| 24 | if (ref($v2)) { |
| 25 | my($x,$y) = @$v2; |
| 26 | $str .= "$x-$y"; |
| 27 | } else { |
| 28 | $str .= "$v2"; |
| 29 | } |
| 30 | } |
| 31 | push(@ret,$str); |
| 32 | } |
| 33 | return @ret; |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | my $tests=" |
| 38 | |
| 39 | 1:2:3:4:5:6 |
| 40 | => '[frequency] Invalid frequency string' |
| 41 | |
| 42 | +1:2:3:4:5:6:7 |
| 43 | => '[frequency] Invalid frequency string' |
| 44 | |
| 45 | 1:2:3*--4:5:6:7 |
| 46 | => '[frequency] Invalid rtime string' |
| 47 | |
| 48 | 1:2:3*4-3:5:6:7 |
| 49 | => '[frequency] Invalid rtime range string' |
| 50 | |
| 51 | 1:2*-1--3:0:5-8,11:1:7 |
| 52 | => '[frequency] Invalid rtime range string' |
| 53 | |
| 54 | -1*2:3:4:5:6:7 |
| 55 | => '[frequency] Invalid frequency string' |
| 56 | |
| 57 | 1:2:-3*4:5:6:7 |
| 58 | => '[frequency] Invalid frequency string' |
| 59 | |
| 60 | ############## |
| 61 | |
| 62 | 1:2:3:4:5:6:7 => 1 2 3 4 5 6 7 * |
| 63 | |
| 64 | 1:02:3:4:5:6:7 => 1 2 3 4 5 6 7 * |
| 65 | |
| 66 | 1:2:0*0:5:6:7 => 1 2 * 0 0 5 6 7 |
| 67 | |
| 68 | 0:0:0*4:5:6:7 => 0 0 1 * 4 5 6 7 |
| 69 | |
| 70 | 1:2:0:0*5,8:6:7 => 1 2 0 0 * 5,8 6 7 |
| 71 | |
| 72 | 1:2:0:0*5-5,8:6:7 => 1 2 0 0 * 5,8 6 7 |
| 73 | |
| 74 | 1:2:0:0*05,8:6:7 => 1 2 0 0 * 5,8 6 7 |
| 75 | |
| 76 | 1:2:0:0*5-8,11:6:7 => 1 2 0 0 * 5,6,7,8,11 6 7 |
| 77 | |
| 78 | 1:2:0*0:5-8,11:6:7 => 1 2 * 0 0 5,6,7,8,11 6 7 |
| 79 | |
| 80 | 1:2*-3--1:0:5-8,11:1:7 => 1 2 * -3,-2,-1 0 5,6,7,8,11 1 7 |
| 81 | |
| 82 | 1:2*2--2:0:5-8,11:1:7 => 1 2 * 2--2 0 5,6,7,8,11 1 7 |
| 83 | |
| 84 | *0:2:0:3:0:0:0 => * 0 2 0 3 0 0 0 |
| 85 | |
| 86 | ############## |
| 87 | |
| 88 | # |
| 89 | # 1:2:3:4 |
| 90 | # |
| 91 | |
| 92 | 1:2:3:4:5:6:7 => 1 2 3 4 5 6 7 * |
| 93 | |
| 94 | 1:-2:3:4:5:6:7 |
| 95 | => '[frequency] Invalid frequency string' |
| 96 | |
| 97 | # |
| 98 | # 1:2:3*4 |
| 99 | # |
| 100 | |
| 101 | 1:2:3*4:5:6:7 => 1 2 3 * 4 5 6 7 |
| 102 | |
| 103 | 1:2:3*8:5:6:7 |
| 104 | => '[frequency] Day of week must be 1-7' |
| 105 | |
| 106 | 1:2:3*-1:5:6:7 |
| 107 | => '[frequency] Day of week must be 1-7' |
| 108 | |
| 109 | # |
| 110 | # 1:0:3*4 |
| 111 | # |
| 112 | |
| 113 | 1:0:3*4:5:6:7 => 1 0 3 * 4 5 6 7 |
| 114 | |
| 115 | 1:0:3*8:5:6:7 |
| 116 | => '[frequency] Day of week must be 1-7' |
| 117 | |
| 118 | 1:0:3*-1:5:6:7 |
| 119 | => '[frequency] Day of week must be 1-7' |
| 120 | |
| 121 | # |
| 122 | # 0:2:3*4 |
| 123 | # |
| 124 | |
| 125 | 0:2:3*4:5:6:7 => 0 2 3 * 4 5 6 7 |
| 126 | |
| 127 | 0:2:3*8:5:6:7 |
| 128 | => '[frequency] Day of week must be 1-7' |
| 129 | |
| 130 | 0:2:3*-1:5:6:7 |
| 131 | => '[frequency] Day of week must be 1-7' |
| 132 | |
| 133 | # |
| 134 | # 0:0:3*4 |
| 135 | # |
| 136 | |
| 137 | 0:0:3*4:5:6:7 => 0 0 3 * 4 5 6 7 |
| 138 | |
| 139 | 0:0:3*8:5:6:7 |
| 140 | => '[frequency] Day of week must be 1-7' |
| 141 | |
| 142 | 0:0:3*-1:5:6:7 |
| 143 | => '[frequency] Day of week must be 1-7' |
| 144 | |
| 145 | # |
| 146 | # 1:2*3:4 |
| 147 | # |
| 148 | |
| 149 | 1:2*3:4:5:6:7 => 1 2 * 3 4 5 6 7 |
| 150 | |
| 151 | 1:2*-3:4:5:6:7 => 1 2 * -3 4 5 6 7 |
| 152 | |
| 153 | 1:2*-8:4:5:6:7 |
| 154 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 155 | |
| 156 | 1:2*8:4:5:6:7 |
| 157 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 158 | |
| 159 | 1:2*3:-4:5:6:7 |
| 160 | => '[frequency] Day of week must be 1-7' |
| 161 | |
| 162 | 1:2*3:8:5:6:7 |
| 163 | => '[frequency] Day of week must be 1-7' |
| 164 | |
| 165 | # |
| 166 | # 0:2*3:4 |
| 167 | # |
| 168 | |
| 169 | 0:2*3:4:5:6:7 => 0 2 * 3 4 5 6 7 |
| 170 | |
| 171 | 0:2*-3:4:5:6:7 => 0 2 * -3 4 5 6 7 |
| 172 | |
| 173 | 0:2*-8:4:5:6:7 |
| 174 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 175 | |
| 176 | 0:2*8:4:5:6:7 |
| 177 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 178 | |
| 179 | 0:2*3:-4:5:6:7 |
| 180 | => '[frequency] Day of week must be 1-7' |
| 181 | |
| 182 | 0:2*3:8:5:6:7 |
| 183 | => '[frequency] Day of week must be 1-7' |
| 184 | |
| 185 | # |
| 186 | # 1*2:3:4 |
| 187 | # |
| 188 | |
| 189 | 1*2:3:4:5:6:7 => 1 * 2 3 4 5 6 7 |
| 190 | |
| 191 | 1*-1:3:4:5:6:7 |
| 192 | => '[frequency] Month of year must be 1-12' |
| 193 | |
| 194 | 1*13:3:4:5:6:7 |
| 195 | => '[frequency] Month of year must be 1-12' |
| 196 | |
| 197 | 1*2:-1:4:5:6:7 => 1 * 2 -1 4 5 6 7 |
| 198 | |
| 199 | 1*2:-6:4:5:6:7 |
| 200 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 201 | |
| 202 | 1*2:6:4:5:6:7 |
| 203 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 204 | |
| 205 | 1*2:3:-1:5:6:7 |
| 206 | => '[frequency] Day of week must be 1-7' |
| 207 | |
| 208 | 1*2:3:8:5:6:7 |
| 209 | => '[frequency] Day of week must be 1-7' |
| 210 | |
| 211 | # |
| 212 | # 0*2:3:4 |
| 213 | # |
| 214 | |
| 215 | 0*2:3:4:5:6:7 => 1 * 2 3 4 5 6 7 |
| 216 | |
| 217 | 0*-1:3:4:5:6:7 |
| 218 | => '[frequency] Month of year must be 1-12' |
| 219 | |
| 220 | 0*13:3:4:5:6:7 |
| 221 | => '[frequency] Month of year must be 1-12' |
| 222 | |
| 223 | 0*2:-1:4:5:6:7 => 1 * 2 -1 4 5 6 7 |
| 224 | |
| 225 | 0*2:-6:4:5:6:7 |
| 226 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 227 | |
| 228 | 0*2:6:4:5:6:7 |
| 229 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 230 | |
| 231 | 0*2:3:-1:5:6:7 |
| 232 | => '[frequency] Day of week must be 1-7' |
| 233 | |
| 234 | 0*2:3:8:5:6:7 |
| 235 | => '[frequency] Day of week must be 1-7' |
| 236 | |
| 237 | # |
| 238 | # *1:2:3:4 |
| 239 | # |
| 240 | |
| 241 | *1:2:3:4:5:6:7 => * 1 2 3 4 5 6 7 |
| 242 | |
| 243 | *-100:2:3:4:5:6:7 |
| 244 | => '[frequency] Year must be in the range 1-9999' |
| 245 | |
| 246 | *12345:2:3:4:5:6:7 |
| 247 | => '[frequency] Year must be in the range 1-9999' |
| 248 | |
| 249 | *1:-1:3:4:5:6:7 |
| 250 | => '[frequency] Month of year must be 1-12' |
| 251 | |
| 252 | *1:13:3:4:5:6:7 |
| 253 | => '[frequency] Month of year must be 1-12' |
| 254 | |
| 255 | *1:2:-1:4:5:6:7 => * 1 2 -1 4 5 6 7 |
| 256 | |
| 257 | *1:2:-6:4:5:6:7 |
| 258 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 259 | |
| 260 | *1:2:6:4:5:6:7 |
| 261 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 262 | |
| 263 | *1:2:3:-1:5:6:7 |
| 264 | => '[frequency] Day of week must be 1-7' |
| 265 | |
| 266 | *1:2:3:8:5:6:7 |
| 267 | => '[frequency] Day of week must be 1-7' |
| 268 | |
| 269 | # |
| 270 | # *0:2:3:4 |
| 271 | # |
| 272 | |
| 273 | *0:2:3:4:5:6:7 => * 0 2 3 4 5 6 7 |
| 274 | |
| 275 | *0:-1:3:4:5:6:7 |
| 276 | => '[frequency] Month of year must be 1-12' |
| 277 | |
| 278 | *0:13:3:4:5:6:7 |
| 279 | => '[frequency] Month of year must be 1-12' |
| 280 | |
| 281 | *0:2:-1:4:5:6:7 => * 0 2 -1 4 5 6 7 |
| 282 | |
| 283 | *0:2:-6:4:5:6:7 |
| 284 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 285 | |
| 286 | *0:2:6:4:5:6:7 |
| 287 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 288 | |
| 289 | *0:2:3:-1:5:6:7 |
| 290 | => '[frequency] Day of week must be 1-7' |
| 291 | |
| 292 | *0:2:3:8:5:6:7 |
| 293 | => '[frequency] Day of week must be 1-7' |
| 294 | |
| 295 | # |
| 296 | # 1:0*3:4 |
| 297 | # |
| 298 | |
| 299 | 1:0*3:4:5:6:7 => 1 * 0 3 4 5 6 7 |
| 300 | |
| 301 | 1:0*-3:4:5:6:7 => 1 * 0 -3 4 5 6 7 |
| 302 | |
| 303 | 1:0*63:4:5:6:7 |
| 304 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 305 | |
| 306 | 1:0*-63:4:5:6:7 |
| 307 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 308 | |
| 309 | 1:0*3:-4:5:6:7 |
| 310 | => '[frequency] Day of week must be 1-7' |
| 311 | |
| 312 | 1:0*3:8:5:6:7 |
| 313 | => '[frequency] Day of week must be 1-7' |
| 314 | |
| 315 | # |
| 316 | # 1*0:3:4 |
| 317 | # |
| 318 | |
| 319 | 1*0:3:4:5:6:7 => 1 * 0 3 4 5 6 7 |
| 320 | |
| 321 | 1*0:-3:4:5:6:7 => 1 * 0 -3 4 5 6 7 |
| 322 | |
| 323 | 1*0:63:4:5:6:7 |
| 324 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 325 | |
| 326 | 1*0:-63:4:5:6:7 |
| 327 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 328 | |
| 329 | 1*0:3:-4:5:6:7 |
| 330 | => '[frequency] Day of week must be 1-7' |
| 331 | |
| 332 | 1*0:3:8:5:6:7 |
| 333 | => '[frequency] Day of week must be 1-7' |
| 334 | |
| 335 | # |
| 336 | # *1:0:3:4 |
| 337 | # |
| 338 | |
| 339 | *1:0:3:4:5:6:7 => * 1 0 3 4 5 6 7 |
| 340 | |
| 341 | *-100:0:3:4:5:6:7 |
| 342 | => '[frequency] Year must be in the range 1-9999' |
| 343 | |
| 344 | *12345:0:3:4:5:6:7 |
| 345 | => '[frequency] Year must be in the range 1-9999' |
| 346 | |
| 347 | *1:0:-3:4:5:6:7 => * 1 0 -3 4 5 6 7 |
| 348 | |
| 349 | *1:0:63:4:5:6:7 |
| 350 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 351 | |
| 352 | *1:0:-63:4:5:6:7 |
| 353 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 354 | |
| 355 | *1:0:3:-4:5:6:7 |
| 356 | => '[frequency] Day of week must be 1-7' |
| 357 | |
| 358 | *1:0:3:8:5:6:7 |
| 359 | => '[frequency] Day of week must be 1-7' |
| 360 | |
| 361 | # |
| 362 | # 0*0:3:4 |
| 363 | # |
| 364 | |
| 365 | 0*0:3:4:5:6:7 => 1 * 0 3 4 5 6 7 |
| 366 | |
| 367 | 0*0:-3:4:5:6:7 => 1 * 0 -3 4 5 6 7 |
| 368 | |
| 369 | 0*0:63:4:5:6:7 |
| 370 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 371 | |
| 372 | 0*0:-63:4:5:6:7 |
| 373 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 374 | |
| 375 | 0*0:3:-4:5:6:7 |
| 376 | => '[frequency] Day of week must be 1-7' |
| 377 | |
| 378 | 0*0:3:8:5:6:7 |
| 379 | => '[frequency] Day of week must be 1-7' |
| 380 | |
| 381 | # |
| 382 | # *0:0:3:4 |
| 383 | # |
| 384 | |
| 385 | *0:0:3:4:5:6:7 => * 0 0 3 4 5 6 7 |
| 386 | |
| 387 | *0:0:-3:4:5:6:7 => * 0 0 -3 4 5 6 7 |
| 388 | |
| 389 | *0:0:63:4:5:6:7 |
| 390 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 391 | |
| 392 | *0:0:-63:4:5:6:7 |
| 393 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 394 | |
| 395 | *0:0:3:-4:5:6:7 |
| 396 | => '[frequency] Day of week must be 1-7' |
| 397 | |
| 398 | *0:0:3:8:5:6:7 |
| 399 | => '[frequency] Day of week must be 1-7' |
| 400 | |
| 401 | # |
| 402 | # 0:0*3:4 |
| 403 | # |
| 404 | |
| 405 | 0:0*3:4:5:6:7 => 0 1 * 3 4 5 6 7 |
| 406 | |
| 407 | 0:0*-3:4:5:6:7 => 0 1 * -3 4 5 6 7 |
| 408 | |
| 409 | 0:0*-8:4:5:6:7 |
| 410 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 411 | |
| 412 | 0:0*8:4:5:6:7 |
| 413 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 414 | |
| 415 | 0:0*3:-4:5:6:7 |
| 416 | => '[frequency] Day of week must be 1-7' |
| 417 | |
| 418 | 0:0*3:8:5:6:7 |
| 419 | => '[frequency] Day of week must be 1-7' |
| 420 | |
| 421 | # |
| 422 | # 1:2:0*4 |
| 423 | # |
| 424 | |
| 425 | 1:2:0*4:5:6:7 => 1 2 * 0 4 5 6 7 |
| 426 | |
| 427 | 1:2:0*-1:5:6:7 => 1 2 * 0 -1 5 6 7 |
| 428 | |
| 429 | 1:2:0*33:5:6:7 |
| 430 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 431 | |
| 432 | 1:2:0*-33:5:6:7 |
| 433 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 434 | |
| 435 | # |
| 436 | # 1:2*0:4 |
| 437 | # |
| 438 | |
| 439 | 1:2*0:4:5:6:7 => 1 2 * 0 4 5 6 7 |
| 440 | |
| 441 | 1:2*0:-1:5:6:7 => 1 2 * 0 -1 5 6 7 |
| 442 | |
| 443 | 1:2*0:33:5:6:7 |
| 444 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 445 | |
| 446 | 1:2*0:-33:5:6:7 |
| 447 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 448 | |
| 449 | # |
| 450 | # 1*2:0:4 |
| 451 | # |
| 452 | |
| 453 | 1*2:0:4:5:6:7 => 1 * 2 0 4 5 6 7 |
| 454 | |
| 455 | 1*-1:0:4:5:6:7 |
| 456 | => '[frequency] Month of year must be 1-12' |
| 457 | |
| 458 | 1*13:0:4:5:6:7 |
| 459 | => '[frequency] Month of year must be 1-12' |
| 460 | |
| 461 | 1*2:0:-1:5:6:7 => 1 * 2 0 -1 5 6 7 |
| 462 | |
| 463 | 1*2:0:-33:5:6:7 |
| 464 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 465 | |
| 466 | 1*2:0:33:5:6:7 |
| 467 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 468 | |
| 469 | # |
| 470 | # *1:2:0:4 |
| 471 | # |
| 472 | |
| 473 | *1:2:0:4:5:6:7 => * 1 2 0 4 5 6 7 |
| 474 | |
| 475 | *-1:2:0:4:5:6:7 |
| 476 | => '[frequency] Year must be in the range 1-9999' |
| 477 | |
| 478 | *12345:2:0:4:5:6:7 |
| 479 | => '[frequency] Year must be in the range 1-9999' |
| 480 | |
| 481 | *1:-1:0:4:5:6:7 |
| 482 | => '[frequency] Month of year must be 1-12' |
| 483 | |
| 484 | *1:13:0:4:5:6:7 |
| 485 | => '[frequency] Month of year must be 1-12' |
| 486 | |
| 487 | *1:2:0:-1:5:6:7 => * 1 2 0 -1 5 6 7 |
| 488 | |
| 489 | *1:2:0:-33:5:6:7 |
| 490 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 491 | |
| 492 | *1:2:0:33:5:6:7 |
| 493 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 494 | |
| 495 | # |
| 496 | # 0:2:0*4 |
| 497 | # |
| 498 | |
| 499 | 0:2:0*4:5:6:7 => 0 2 * 0 4 5 6 7 |
| 500 | |
| 501 | 0:2:0*-4:5:6:7 => 0 2 * 0 -4 5 6 7 |
| 502 | |
| 503 | 0:2:0*33:5:6:7 |
| 504 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 505 | |
| 506 | 0:2:0*-33:5:6:7 |
| 507 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 508 | |
| 509 | # |
| 510 | # 0:2*0:4 |
| 511 | # |
| 512 | |
| 513 | 0:2*0:4:5:6:7 => 0 2 * 0 4 5 6 7 |
| 514 | |
| 515 | 0:2*0:-4:5:6:7 => 0 2 * 0 -4 5 6 7 |
| 516 | |
| 517 | 0:2*0:33:5:6:7 |
| 518 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 519 | |
| 520 | 0:2*0:-33:5:6:7 |
| 521 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 522 | |
| 523 | # |
| 524 | # 0*2:0:4 |
| 525 | # |
| 526 | |
| 527 | 0*2:0:4:5:6:7 => 1 * 2 0 4 5 6 7 |
| 528 | |
| 529 | 0*-1:0:4:5:6:7 |
| 530 | => '[frequency] Month of year must be 1-12' |
| 531 | |
| 532 | 0*13:0:4:5:6:7 |
| 533 | => '[frequency] Month of year must be 1-12' |
| 534 | |
| 535 | 0*2:0:-1:5:6:7 => 1 * 2 0 -1 5 6 7 |
| 536 | |
| 537 | 0*2:0:-33:5:6:7 |
| 538 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 539 | |
| 540 | 0*2:0:33:5:6:7 |
| 541 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 542 | |
| 543 | # |
| 544 | # *0:2:0:4 |
| 545 | # |
| 546 | |
| 547 | *0:2:0:4:5:6:7 => * 0 2 0 4 5 6 7 |
| 548 | |
| 549 | *0:-2:0:4:5:6:7 |
| 550 | => '[frequency] Month of year must be 1-12' |
| 551 | |
| 552 | *0:13:0:4:5:6:7 |
| 553 | => '[frequency] Month of year must be 1-12' |
| 554 | |
| 555 | *0:2:0:-4:5:6:7 => * 0 2 0 -4 5 6 7 |
| 556 | |
| 557 | *0:2:0:33:5:6:7 |
| 558 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 559 | |
| 560 | *0:2:0:-33:5:6:7 |
| 561 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 562 | |
| 563 | # |
| 564 | # 1:2:3*0 |
| 565 | # |
| 566 | |
| 567 | 1:2:3*0:5:6:7 => 1 2 3 * 0 5 6 7 |
| 568 | |
| 569 | # |
| 570 | # 1:0:3*0 |
| 571 | # |
| 572 | |
| 573 | 1:0:3*0:5:6:7 => 1 0 3 * 0 5 6 7 |
| 574 | |
| 575 | # |
| 576 | # 0:2:3*0 |
| 577 | # |
| 578 | |
| 579 | 0:2:3*0:5:6:7 => 0 2 3 * 0 5 6 7 |
| 580 | |
| 581 | # |
| 582 | # 0:0:3*0 |
| 583 | # |
| 584 | |
| 585 | 0:0:3*0:5:6:7 => 0 0 3 * 0 5 6 7 |
| 586 | |
| 587 | # |
| 588 | # 1:0*3:0 |
| 589 | # |
| 590 | |
| 591 | 1:0*3:0:5:6:7 => 1 * 0 3 0 5 6 7 |
| 592 | |
| 593 | 1:0*-3:0:5:6:7 => 1 * 0 -3 0 5 6 7 |
| 594 | |
| 595 | 1:0*63:0:5:6:7 |
| 596 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 597 | |
| 598 | 1:0*-63:0:5:6:7 |
| 599 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 600 | |
| 601 | # |
| 602 | # 1*0:3:0 |
| 603 | # |
| 604 | |
| 605 | 1*0:3:0:5:6:7 => 1 * 0 3 0 5 6 7 |
| 606 | |
| 607 | 1*0:-3:0:5:6:7 => 1 * 0 -3 0 5 6 7 |
| 608 | |
| 609 | 1*0:63:0:5:6:7 |
| 610 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 611 | |
| 612 | 1*0:-63:0:5:6:7 |
| 613 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 614 | |
| 615 | # |
| 616 | # *1:0:3:0 |
| 617 | # |
| 618 | |
| 619 | *1:0:3:0:5:6:7 => * 1 0 3 0 5 6 7 |
| 620 | |
| 621 | *-1:0:3:0:5:6:7 |
| 622 | => '[frequency] Year must be in the range 1-9999' |
| 623 | |
| 624 | *12345:0:3:0:5:6:7 |
| 625 | => '[frequency] Year must be in the range 1-9999' |
| 626 | |
| 627 | *1:0:-3:0:5:6:7 => * 1 0 -3 0 5 6 7 |
| 628 | |
| 629 | *1:0:63:0:5:6:7 |
| 630 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 631 | |
| 632 | *1:0:-63:0:5:6:7 |
| 633 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 634 | |
| 635 | # |
| 636 | # 1:2*3:0 |
| 637 | # |
| 638 | |
| 639 | 1:2*3:0:5:6:7 => 1 2 * 3 0 5 6 7 |
| 640 | |
| 641 | 1:2*-3:0:5:6:7 => 1 2 * -3 0 5 6 7 |
| 642 | |
| 643 | 1:2*6:0:5:6:7 |
| 644 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 645 | |
| 646 | 1:2*-6:0:5:6:7 |
| 647 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 648 | |
| 649 | # |
| 650 | # 0:2*3:0 |
| 651 | # |
| 652 | |
| 653 | 0:2*3:0:5:6:7 => 0 2 * 3 0 5 6 7 |
| 654 | |
| 655 | 0:2*-3:0:5:6:7 => 0 2 * -3 0 5 6 7 |
| 656 | |
| 657 | 0:2*6:0:5:6:7 |
| 658 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 659 | |
| 660 | 0:2*-6:0:5:6:7 |
| 661 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 662 | |
| 663 | # |
| 664 | # 1*2:3:0 |
| 665 | # |
| 666 | |
| 667 | 1*2:3:0:5:6:7 => 1 * 2 3 0 5 6 7 |
| 668 | |
| 669 | 1*-2:3:0:5:6:7 |
| 670 | => '[frequency] Month of year must be 1-12' |
| 671 | |
| 672 | 1*13:3:0:5:6:7 |
| 673 | => '[frequency] Month of year must be 1-12' |
| 674 | |
| 675 | 1*2:-3:0:5:6:7 => 1 * 2 -3 0 5 6 7 |
| 676 | |
| 677 | 1*2:6:0:5:6:7 |
| 678 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 679 | |
| 680 | 1*2:-6:0:5:6:7 |
| 681 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 682 | |
| 683 | # |
| 684 | # 0*2:3:0 |
| 685 | # |
| 686 | |
| 687 | 0*2:3:0:5:6:7 => 1 * 2 3 0 5 6 7 |
| 688 | |
| 689 | 0*-2:3:0:5:6:7 |
| 690 | => '[frequency] Month of year must be 1-12' |
| 691 | |
| 692 | 0*13:3:0:5:6:7 |
| 693 | => '[frequency] Month of year must be 1-12' |
| 694 | |
| 695 | 0*2:-3:0:5:6:7 => 1 * 2 -3 0 5 6 7 |
| 696 | |
| 697 | 0*2:6:0:5:6:7 |
| 698 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 699 | |
| 700 | 0*2:-6:0:5:6:7 |
| 701 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 702 | |
| 703 | # |
| 704 | # *1:2:3:0 |
| 705 | # |
| 706 | |
| 707 | *1:2:3:0:5:6:7 => * 1 2 3 0 5 6 7 |
| 708 | |
| 709 | *-1:2:3:0:5:6:7 |
| 710 | => '[frequency] Year must be in the range 1-9999' |
| 711 | |
| 712 | *12345:2:3:0:5:6:7 |
| 713 | => '[frequency] Year must be in the range 1-9999' |
| 714 | |
| 715 | *1:-2:3:0:5:6:7 |
| 716 | => '[frequency] Month of year must be 1-12' |
| 717 | |
| 718 | *1:13:3:0:5:6:7 |
| 719 | => '[frequency] Month of year must be 1-12' |
| 720 | |
| 721 | *1:2:-3:0:5:6:7 => * 1 2 -3 0 5 6 7 |
| 722 | |
| 723 | *1:2:6:0:5:6:7 |
| 724 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 725 | |
| 726 | *1:2:-6:0:5:6:7 |
| 727 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 728 | |
| 729 | # |
| 730 | # *0:2:3:0 |
| 731 | # |
| 732 | |
| 733 | *0:2:3:0:5:6:7 => * 0 2 3 0 5 6 7 |
| 734 | |
| 735 | *0:-2:3:0:5:6:7 |
| 736 | => '[frequency] Month of year must be 1-12' |
| 737 | |
| 738 | *0:13:3:0:5:6:7 |
| 739 | => '[frequency] Month of year must be 1-12' |
| 740 | |
| 741 | *0:2:-3:0:5:6:7 => * 0 2 -3 0 5 6 7 |
| 742 | |
| 743 | *0:2:6:0:5:6:7 |
| 744 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 745 | |
| 746 | *0:2:-6:0:5:6:7 |
| 747 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 748 | |
| 749 | # |
| 750 | # 0:0*3:0 |
| 751 | # |
| 752 | |
| 753 | 0:0*3:0:5:6:7 => 0 1 * 3 0 5 6 7 |
| 754 | |
| 755 | 0:0*-3:0:5:6:7 => 0 1 * -3 0 5 6 7 |
| 756 | |
| 757 | 0:0*6:0:5:6:7 |
| 758 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 759 | |
| 760 | 0:0*-6:0:5:6:7 |
| 761 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 762 | |
| 763 | # |
| 764 | # 0*0:3:0 |
| 765 | # |
| 766 | |
| 767 | 0*0:3:0:5:6:7 => 1 * 0 3 0 5 6 7 |
| 768 | |
| 769 | 0*0:-3:0:5:6:7 => 1 * 0 -3 0 5 6 7 |
| 770 | |
| 771 | 0*0:63:0:5:6:7 |
| 772 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 773 | |
| 774 | 0*0:-63:0:5:6:7 |
| 775 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 776 | |
| 777 | # |
| 778 | # *0:0:3:0 |
| 779 | # |
| 780 | |
| 781 | *0:0:3:0:5:6:7 => * 0 0 3 0 5 6 7 |
| 782 | |
| 783 | *0:0:-3:0:5:6:7 => * 0 0 -3 0 5 6 7 |
| 784 | |
| 785 | *0:0:63:0:5:6:7 |
| 786 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 787 | |
| 788 | *0:0:-63:0:5:6:7 |
| 789 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 790 | |
| 791 | # |
| 792 | # 1:0:0*4 |
| 793 | # |
| 794 | |
| 795 | 1:0:0*4:5:6:7 => 1 * 0 0 4 5 6 7 |
| 796 | |
| 797 | 1:0:0*-4:5:6:7 => 1 * 0 0 -4 5 6 7 |
| 798 | |
| 799 | 1:0:0*400:5:6:7 |
| 800 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 801 | |
| 802 | 1:0:0*-400:5:6:7 |
| 803 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 804 | |
| 805 | # |
| 806 | # 1:0*0:4 |
| 807 | # |
| 808 | |
| 809 | 1:0*0:4:5:6:7 => 1 * 0 0 4 5 6 7 |
| 810 | |
| 811 | 1:0*0:-4:5:6:7 => 1 * 0 0 -4 5 6 7 |
| 812 | |
| 813 | 1:0*0:400:5:6:7 |
| 814 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 815 | |
| 816 | 1:0*0:-400:5:6:7 |
| 817 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 818 | |
| 819 | # |
| 820 | # 1*0:0:4 |
| 821 | # |
| 822 | |
| 823 | 1*0:0:4:5:6:7 => 1 * 0 0 4 5 6 7 |
| 824 | |
| 825 | 1*0:0:-4:5:6:7 => 1 * 0 0 -4 5 6 7 |
| 826 | |
| 827 | 1*0:0:400:5:6:7 |
| 828 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 829 | |
| 830 | 1*0:0:-400:5:6:7 |
| 831 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 832 | |
| 833 | # |
| 834 | # *1:0:0:4 |
| 835 | # |
| 836 | |
| 837 | *1:0:0:4:5:6:7 => * 1 0 0 4 5 6 7 |
| 838 | |
| 839 | *-1:0:0:4:5:6:7 |
| 840 | => '[frequency] Year must be in the range 1-9999' |
| 841 | |
| 842 | *12345:0:0:4:5:6:7 |
| 843 | => '[frequency] Year must be in the range 1-9999' |
| 844 | |
| 845 | *1:0:0:-4:5:6:7 => * 1 0 0 -4 5 6 7 |
| 846 | |
| 847 | *1:0:0:400:5:6:7 |
| 848 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 849 | |
| 850 | *1:0:0:400:5:6:7 |
| 851 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 852 | |
| 853 | # |
| 854 | # 0:0:0*4 |
| 855 | # |
| 856 | |
| 857 | 0:0:0*4:5:6:7 => 0 0 1 * 4 5 6 7 |
| 858 | |
| 859 | 0:0:0*8:5:6:7 |
| 860 | => '[frequency] Day of week must be 1-7' |
| 861 | |
| 862 | 0:0:0*-1:5:6:7 |
| 863 | => '[frequency] Day of week must be 1-7' |
| 864 | |
| 865 | # |
| 866 | # 0:0*0:4 |
| 867 | # |
| 868 | |
| 869 | 0:0*0:4:5:6:7 => 0 1 * 0 4 5 6 7 |
| 870 | |
| 871 | 0:0*0:-4:5:6:7 => 0 1 * 0 -4 5 6 7 |
| 872 | |
| 873 | 0:0*0:33:5:6:7 |
| 874 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 875 | |
| 876 | 0:0*0:-33:5:6:7 |
| 877 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 878 | |
| 879 | # |
| 880 | # 0*0:0:4 |
| 881 | # |
| 882 | |
| 883 | 0*0:0:4:5:6:7 => 1 * 0 0 4 5 6 7 |
| 884 | |
| 885 | 0*0:0:-4:5:6:7 => 1 * 0 0 -4 5 6 7 |
| 886 | |
| 887 | 0*0:0:400:5:6:7 |
| 888 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 889 | |
| 890 | 0*0:0:-400:5:6:7 |
| 891 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 892 | |
| 893 | # |
| 894 | # *0:0:0:4 |
| 895 | # |
| 896 | |
| 897 | *0:0:0:4:5:6:7 => * 0 0 0 4 5 6 7 |
| 898 | |
| 899 | *0:0:0:-4:5:6:7 => * 0 0 0 -4 5 6 7 |
| 900 | |
| 901 | *0:0:0:400:5:6:7 |
| 902 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 903 | |
| 904 | *0:0:0:-400:5:6:7 |
| 905 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 906 | |
| 907 | # |
| 908 | # 1:2:0*0 |
| 909 | # |
| 910 | |
| 911 | 1:2:0*0:5:6:7 => 1 2 * 0 0 5 6 7 |
| 912 | |
| 913 | # |
| 914 | # 1:2*0:0 |
| 915 | # |
| 916 | |
| 917 | 1:2*0:0:5:6:7 => 1 2 * 0 0 5 6 7 |
| 918 | |
| 919 | # |
| 920 | # 1*2:0:0 |
| 921 | # |
| 922 | |
| 923 | 1*2:0:0:5:6:7 => 1 * 2 0 0 5 6 7 |
| 924 | |
| 925 | 1*-2:0:0:5:6:7 |
| 926 | => '[frequency] Month of year must be 1-12' |
| 927 | |
| 928 | 1*13:0:0:5:6:7 |
| 929 | => '[frequency] Month of year must be 1-12' |
| 930 | |
| 931 | # |
| 932 | # *1:2:0:0 |
| 933 | # |
| 934 | |
| 935 | *1:2:0:0:5:6:7 => * 1 2 0 0 5 6 7 |
| 936 | |
| 937 | *-1:2:0:0:5:6:7 |
| 938 | => '[frequency] Year must be in the range 1-9999' |
| 939 | |
| 940 | *12345:2:0:0:5:6:7 |
| 941 | => '[frequency] Year must be in the range 1-9999' |
| 942 | |
| 943 | *1:-2:0:0:5:6:7 |
| 944 | => '[frequency] Month of year must be 1-12' |
| 945 | |
| 946 | *1:13:0:0:5:6:7 |
| 947 | => '[frequency] Month of year must be 1-12' |
| 948 | |
| 949 | # |
| 950 | # 1:0:0*0 |
| 951 | # |
| 952 | |
| 953 | 1:0:0*0:5:6:7 => 1 * 0 0 0 5 6 7 |
| 954 | |
| 955 | # |
| 956 | # 1:0*0:0 |
| 957 | # |
| 958 | |
| 959 | 1:0*0:0:5:6:7 => 1 * 0 0 0 5 6 7 |
| 960 | |
| 961 | # |
| 962 | # 1*0:0:0 |
| 963 | # |
| 964 | |
| 965 | 1*0:0:0:5:6:7 => 1 * 0 0 0 5 6 7 |
| 966 | |
| 967 | # |
| 968 | # *1:0:0:0 |
| 969 | # |
| 970 | |
| 971 | *1:0:0:0:5:6:7 => * 1 0 0 0 5 6 7 |
| 972 | |
| 973 | *-1:0:0:0:5:6:7 |
| 974 | => '[frequency] Year must be in the range 1-9999' |
| 975 | |
| 976 | *12345:0:0:0:5:6:7 |
| 977 | => '[frequency] Year must be in the range 1-9999' |
| 978 | |
| 979 | # |
| 980 | # 0:2:0*0 |
| 981 | # |
| 982 | |
| 983 | 0:2:0*0:5:6:7 => 0 2 * 0 0 5 6 7 |
| 984 | |
| 985 | # |
| 986 | # 0:2*0:0 |
| 987 | # |
| 988 | |
| 989 | 0:2*0:0:5:6:7 => 0 2 * 0 0 5 6 7 |
| 990 | |
| 991 | # |
| 992 | # 0*2:0:0 |
| 993 | # |
| 994 | |
| 995 | 0*2:0:0:5:6:7 => 1 * 2 0 0 5 6 7 |
| 996 | |
| 997 | 0*-2:0:0:5:6:7 |
| 998 | => '[frequency] Month of year must be 1-12' |
| 999 | |
| 1000 | 0*13:0:0:5:6:7 |
| 1001 | => '[frequency] Month of year must be 1-12' |
| 1002 | |
| 1003 | # |
| 1004 | # *0:2:0:0 |
| 1005 | # |
| 1006 | |
| 1007 | *0:2:0:0:5:6:7 => * 0 2 0 0 5 6 7 |
| 1008 | |
| 1009 | *0:-2:0:0:5:6:7 |
| 1010 | => '[frequency] Month of year must be 1-12' |
| 1011 | |
| 1012 | *0:13:0:0:5:6:7 |
| 1013 | => '[frequency] Month of year must be 1-12' |
| 1014 | |
| 1015 | # |
| 1016 | # 0:0:0*0 |
| 1017 | # |
| 1018 | |
| 1019 | 0:0:0*0:5:6:7 => 0 0 1 * 0 5 6 7 |
| 1020 | |
| 1021 | # |
| 1022 | # 0:0*0:0 |
| 1023 | # |
| 1024 | |
| 1025 | 0:0*0:0:5:6:7 => 0 1 * 0 0 5 6 7 |
| 1026 | |
| 1027 | # |
| 1028 | # 0*0:0:0 |
| 1029 | # |
| 1030 | |
| 1031 | 0*0:0:0:5:6:7 => 1 * 0 0 0 5 6 7 |
| 1032 | |
| 1033 | # |
| 1034 | # *0:0:0:0 |
| 1035 | # |
| 1036 | |
| 1037 | *0:0:0:0:5:6:7 => * 0 0 0 0 5 6 7 |
| 1038 | |
| 1039 | ################# |
| 1040 | |
| 1041 | 1:2:0:0*5-8,-11:1:7 |
| 1042 | => '[frequency] Hour must be 0-23' |
| 1043 | |
| 1044 | 1:2:0:0*5-8,11:-1:7 |
| 1045 | => '[frequency] Minute/second must be 0-59' |
| 1046 | |
| 1047 | 1:2:0:0*5-8,11:1:-7 |
| 1048 | => '[frequency] Minute/second must be 0-59' |
| 1049 | |
| 1050 | 1:2:0:0*5-8,11:-3--1:7 |
| 1051 | => '[frequency] Minute/second must be 0-59' |
| 1052 | |
| 1053 | 1*-1:1:1:1:1:1 |
| 1054 | => '[frequency] Month of year must be 1-12' |
| 1055 | |
| 1056 | 1*13:1:1:1:1:1 |
| 1057 | => '[frequency] Month of year must be 1-12' |
| 1058 | |
| 1059 | 1*1:-6:0:1:1:1 |
| 1060 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 1061 | |
| 1062 | 1*1:6:0:1:1:1 |
| 1063 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 1064 | |
| 1065 | 1*0:-54:0:1:1:1 |
| 1066 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 1067 | |
| 1068 | 1*0:54:0:1:1:1 |
| 1069 | => '[frequency] Week of year must be 1-53 or -1 to -53' |
| 1070 | |
| 1071 | 1*1:6:0:1:1:1 |
| 1072 | => '[frequency] Week of month must be 1-5 or -1 to -5' |
| 1073 | |
| 1074 | 1*0:0:367:1:1:1 |
| 1075 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 1076 | |
| 1077 | 1*0:0:-367:1:1:1 |
| 1078 | => '[frequency] Day of year must be 1-366 or -1 to -366' |
| 1079 | |
| 1080 | 1*1:0:32:1:1:1 |
| 1081 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 1082 | |
| 1083 | 1*1:0:-32:1:1:1 |
| 1084 | => '[frequency] Day of month must be 1-31 or -1 to -31' |
| 1085 | |
| 1086 | 1*0:1:-1:1:1:1 |
| 1087 | => '[frequency] Day of week must be 1-7' |
| 1088 | |
| 1089 | 1*0:1:8:1:1:1 |
| 1090 | => '[frequency] Day of week must be 1-7' |
| 1091 | |
| 1092 | "; |
| 1093 | |
| 1094 | $::ti->tests(func => \&test, |
| 1095 | tests => $tests); |
| 1096 | $::ti->done_testing(); |
| 1097 | |
| 1098 | #Local Variables: |
| 1099 | #mode: cperl |
| 1100 | #indent-tabs-mode: nil |
| 1101 | #cperl-indent-level: 3 |
| 1102 | #cperl-continued-statement-offset: 2 |
| 1103 | #cperl-continued-brace-offset: 0 |
| 1104 | #cperl-brace-offset: 0 |
| 1105 | #cperl-brace-imaginary-offset: 0 |
| 1106 | #cperl-label-offset: 0 |
| 1107 | #End: |