|
@@ -2456,7 +2456,7 @@ DEADLINE: <2012-01-01> SCHEDULED: <2012-01-01> CLOSED: [2012-01-01]\n"))))
|
|
|
;; Diary.
|
|
|
(should (equal (org-test-parse-and-interpret "<%%diary-float t 4 2>")
|
|
|
"<%%diary-float t 4 2>\n"))
|
|
|
- ;; Timestamp with repeater interval.
|
|
|
+ ;; Timestamp with repeater interval, with delay, with both.
|
|
|
(should (equal (org-test-parse-and-interpret "<2012-03-29 thu. +1y>")
|
|
|
"<2012-03-29 thu. +1y>\n"))
|
|
|
(should
|
|
@@ -2467,6 +2467,23 @@ DEADLINE: <2012-01-01> SCHEDULED: <2012-01-01> CLOSED: [2012-01-01]\n"))))
|
|
|
(:type active :year-start 2012 :month-start 3 :day-start 29
|
|
|
:repeater-type cumulate :repeater-value 1 :repeater-unit year))
|
|
|
nil)))
|
|
|
+ (should
|
|
|
+ (string-match
|
|
|
+ "<2012-03-29 .* -1y>"
|
|
|
+ (org-element-timestamp-interpreter
|
|
|
+ '(timestamp
|
|
|
+ (:type active :year-start 2012 :month-start 3 :day-start 29
|
|
|
+ :warning-type all :warning-value 1 :warning-unit year))
|
|
|
+ nil)))
|
|
|
+ (should
|
|
|
+ (string-match
|
|
|
+ "<2012-03-29 .* \\+1y -1y>"
|
|
|
+ (org-element-timestamp-interpreter
|
|
|
+ '(timestamp
|
|
|
+ (:type active :year-start 2012 :month-start 3 :day-start 29
|
|
|
+ :warning-type all :warning-value 1 :warning-unit year
|
|
|
+ :repeater-type cumulate :repeater-value 1 :repeater-unit year))
|
|
|
+ nil)))
|
|
|
;; Timestamp range with repeater interval
|
|
|
(should (equal (org-test-parse-and-interpret
|
|
|
"<2012-03-29 Thu +1y>--<2012-03-30 Thu +1y>")
|