X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=test%2Fcalendar_event_test.pl;h=0defafa220fdc24bb0b72054a52d908db1e10f8f;hp=54162551912f93bd05fc14989f88bd8d239c290b;hb=968bcf45be81faba6dbcb3357de725a94a34d09d;hpb=a5ffa49fda3a66316cc0b026a18eb64cf5093c25 diff --git a/test/calendar_event_test.pl b/test/calendar_event_test.pl index 5416255..0defafa 100755 --- a/test/calendar_event_test.pl +++ b/test/calendar_event_test.pl @@ -157,6 +157,24 @@ my $tests = [ ' mon 0 0', { error => "unable to parse calendar event - unused parts" }, ], + [ + '0,1,3..5', + { h => '*', m => [0,1,3,4,5], dow => $alldays }, + [ + [0, 60], + [60, 3*60], + [5*60, 60*60] + ] + ], + [ + '2,4:0,1,3..5', + { h => [2,4], m => [0,1,3,4,5], dow => $alldays }, + [ + [0, 2*60*60], + [2*60*60 + 60, 2*60*60 + 3*60], + [2*60*60 + 5*60, 4*60*60] + ] + ], ]; foreach my $test (@$tests) {