Skip to content

Commit c9db3c5

Browse files
committed
test-org-clock/clocktable/step: Add test for the new ":step quarter"
* testing/lisp/test-org-clock.el (test-org-clock/clocktable/step): Add new test case.
1 parent 583c01c commit c9db3c5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

testing/lisp/test-org-clock.el

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,40 @@ CLOCK: [2014-04-03 Thu 08:00]--[2014-04-03 Thu 16:00] => 8:00"
10531053
(let ((system-time-locale "en_US"))
10541054
(test-org-clock-clocktable-contents
10551055
":step month :mstart 4 :block 2014 :stepskip0 t")))))
1056+
;; Test ":step quarter".
1057+
(should
1058+
(string-match-p
1059+
"
1060+
Quarterly report starting on:.*?\\[2014-01-01 .*
1061+
.*
1062+
.*
1063+
|.*?| \\*8:00\\* |
1064+
.*
1065+
| Foo +| 8:00 +|
1066+
1067+
.*?\\[2014-04-01 .*
1068+
.*
1069+
.*
1070+
|.*?| \\*16:00\\* |
1071+
.*
1072+
| Foo +| 16:00 +|
1073+
1074+
.*?\\[2014-07-01 .*
1075+
.*
1076+
.*
1077+
|.*?| \\*8:00\\* |
1078+
.*
1079+
| Foo +| 8:00 +|
1080+
"
1081+
(org-test-with-temp-text
1082+
"* Foo
1083+
CLOCK: [2014-03-04 Tue 08:00]--[2014-03-04 Tue 16:00] => 8:00
1084+
CLOCK: [2014-04-03 Thu 08:00]--[2014-04-03 Thu 16:00] => 8:00
1085+
CLOCK: [2014-06-04 Wed 08:00]--[2014-06-04 Wed 16:00] => 8:00
1086+
CLOCK: [2014-07-03 Thu 08:00]--[2014-07-03 Thu 16:00] => 8:00"
1087+
(let ((system-time-locale "en_US"))
1088+
(test-org-clock-clocktable-contents
1089+
":step quarter :block 2014 :stepskip0 t")))))
10561090
;; Test ":step semimonth".
10571091
(should
10581092
(string-match-p

0 commit comments

Comments
 (0)