]> git.proxmox.com Git - pve-common.git/blobdiff - test/calendar_event_test.pl
calendarevent: check range for start also without repetition
[pve-common.git] / test / calendar_event_test.pl
index ec8fcc0c84db97a50a583fa3b1dcfd29a4854c3b..9c2bf46075acc316553e57c50773129e19a3880c 100755 (executable)
@@ -132,7 +132,19 @@ my $tests = [
        [20*60*60, 20*60*60 + 30*60],
        [22*60*60 + 30*60, 44*60*60]
      ]
-    ]
+    ],
+    [
+     '61',
+     { error => "value '61' out of range" },
+    ],
+    [
+     '*/61',
+     { error => "repetition '61' out of range" },
+    ],
+    [
+     '0..80',
+     { error => "range end '80' out of range" },
+    ],
 ];
 
 foreach my $test (@$tests) {