|
@@ -63,7 +63,7 @@
|
|
;; Test in buffer target with no additional subheadings...
|
|
;; Test in buffer target with no additional subheadings...
|
|
(should
|
|
(should
|
|
(string-match-p
|
|
(string-match-p
|
|
- (regexp-quote "*** 2020-07-05 Sunday\n**** a")
|
|
|
|
|
|
+ (regexp-quote (format-time-string "*** 2020-07-05 %A\n**** a"))
|
|
(org-test-with-temp-text-in-file "* a\n"
|
|
(org-test-with-temp-text-in-file "* a\n"
|
|
(let ((org-archive-location "::datetree/"))
|
|
(let ((org-archive-location "::datetree/"))
|
|
(org-archive-subtree)
|
|
(org-archive-subtree)
|
|
@@ -71,7 +71,7 @@
|
|
;; ... and with `org-odd-levels-only' non-nil.
|
|
;; ... and with `org-odd-levels-only' non-nil.
|
|
(should
|
|
(should
|
|
(string-match-p
|
|
(string-match-p
|
|
- (regexp-quote "***** 2020-07-05 Sunday\n******* a")
|
|
|
|
|
|
+ (regexp-quote (format-time-string "***** 2020-07-05 %A\n******* a"))
|
|
(org-test-with-temp-text-in-file "* a\n"
|
|
(org-test-with-temp-text-in-file "* a\n"
|
|
(let ((org-archive-location "::datetree/")
|
|
(let ((org-archive-location "::datetree/")
|
|
(org-odd-levels-only t))
|
|
(org-odd-levels-only t))
|
|
@@ -80,7 +80,7 @@
|
|
;; Test in buffer target with an additional subheading...
|
|
;; Test in buffer target with an additional subheading...
|
|
(should
|
|
(should
|
|
(string-match-p
|
|
(string-match-p
|
|
- (regexp-quote "*** 2020-07-05 Sunday\n**** a\n***** b")
|
|
|
|
|
|
+ (regexp-quote (format-time-string "*** 2020-07-05 %A\n**** a\n***** b"))
|
|
(org-test-with-temp-text-in-file "* b\n"
|
|
(org-test-with-temp-text-in-file "* b\n"
|
|
(let ((org-archive-location "::datetree/* a"))
|
|
(let ((org-archive-location "::datetree/* a"))
|
|
(org-archive-subtree)
|
|
(org-archive-subtree)
|
|
@@ -88,7 +88,7 @@
|
|
;; ... and with `org-odd-levels-only' non-nil.
|
|
;; ... and with `org-odd-levels-only' non-nil.
|
|
(should
|
|
(should
|
|
(string-match-p
|
|
(string-match-p
|
|
- (regexp-quote "***** 2020-07-05 Sunday\n******* a\n********* b")
|
|
|
|
|
|
+ (regexp-quote (format-time-string "***** 2020-07-05 %A\n******* a\n********* b"))
|
|
(org-test-with-temp-text-in-file "* b\n"
|
|
(org-test-with-temp-text-in-file "* b\n"
|
|
(let ((org-archive-location "::datetree/* a")
|
|
(let ((org-archive-location "::datetree/* a")
|
|
(org-odd-levels-only t))
|
|
(org-odd-levels-only t))
|