org-clock: Fix failing test

This commit is contained in:
Nicolas Goaziou 2019-03-10 16:18:26 +01:00
parent cf079592c4
commit a8a0d66900
1 changed files with 9 additions and 9 deletions

View File

@ -590,10 +590,10 @@ CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
;; Otherwise, link to the headline in the current file. ;; Otherwise, link to the headline in the current file.
(should (should
(equal (equal
"| Headline | Time | "| Headline | Time |
|-------------------------------+---------| |-------------------------------------------+---------|
| *Total time* | *26:00* | | *Total time* | *26:00* |
|-------------------------------+---------| |-------------------------------------------+---------|
| [[file:filename::Foo][Foo]] | 26:00 |" | [[file:filename::Foo][Foo]] | 26:00 |"
(org-test-with-temp-text-in-file (org-test-with-temp-text-in-file
"* Foo "* Foo
@ -614,7 +614,7 @@ CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
(org-test-with-temp-text (org-test-with-temp-text
"* TODO Foo "* TODO Foo
CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00" CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
(test-org-clock-clocktable-contents ":link t")))) (test-org-clock-clocktable-contents ":link t :lang en"))))
(should (should
(equal (equal
"| Headline | Time | "| Headline | Time |
@ -625,7 +625,7 @@ CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
(org-test-with-temp-text (org-test-with-temp-text
"* [#A] Foo "* [#A] Foo
CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00" CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
(test-org-clock-clocktable-contents ":link t")))) (test-org-clock-clocktable-contents ":link t :lang en"))))
(should (should
(equal (equal
"| Headline | Time | "| Headline | Time |
@ -647,7 +647,7 @@ CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
(org-test-with-temp-text (org-test-with-temp-text
"* Foo :tag: "* Foo :tag:
CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00" CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
(test-org-clock-clocktable-contents ":link t")))) (test-org-clock-clocktable-contents ":link t :lang en"))))
;; Remove statistics cookie from headline description. ;; Remove statistics cookie from headline description.
(should (should
(equal (equal
@ -659,7 +659,7 @@ CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
(org-test-with-temp-text (org-test-with-temp-text
"* Foo [50%] "* Foo [50%]
CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00" CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
(test-org-clock-clocktable-contents ":link t")))) (test-org-clock-clocktable-contents ":link t :lang en"))))
(should (should
(equal (equal
"| Headline | Time | "| Headline | Time |
@ -670,7 +670,7 @@ CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
(org-test-with-temp-text (org-test-with-temp-text
"* Foo [1/2] "* Foo [1/2]
CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00" CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00"
(test-org-clock-clocktable-contents ":link t")))) (test-org-clock-clocktable-contents ":link t :lang en"))))
;; Replace links with their description, or turn them into plain ;; Replace links with their description, or turn them into plain
;; links if there is no description. ;; links if there is no description.
(should (should