fix: pre-existing paren imbalances in programming-org and system-archivist tests
Some checks failed
Deploy (Gitea) / deploy (push) Failing after 3s
Some checks failed
Deploy (Gitea) / deploy (push) Failing after 3s
This commit is contained in:
@@ -298,9 +298,13 @@ AST format: (:TYPE :HEADLINE :properties (:ID ... :TITLE ... :TAGS (...))
|
||||
|
||||
(test test-org-headline-find-by-id
|
||||
"Contract 6: org-headline-find-by-id finds a headline by ID."
|
||||
(let ((ast (list :type :HEADLINE :properties (list :ID "root" :TITLE "Root")
|
||||
:contents (list (list :type :HEADLINE :properties (list :ID "child1" :TITLE "Child"))
|
||||
(list :type :HEADLINE :properties (list :ID "child2" :TITLE "Child 2")))))))
|
||||
(let* ((ast (list :type :HEADLINE
|
||||
:properties (list :ID "root" :TITLE "Root")
|
||||
:contents
|
||||
(list (list :type :HEADLINE
|
||||
:properties (list :ID "child1" :TITLE "Child"))
|
||||
(list :type :HEADLINE
|
||||
:properties (list :ID "child2" :TITLE "Child 2"))))))
|
||||
(let ((found (org-headline-find-by-id ast "child2")))
|
||||
(is (not (null found)))
|
||||
(is (string= "Child 2" (getf (getf found :properties) :TITLE))))
|
||||
|
||||
@@ -276,4 +276,4 @@ and dispatches as needed. Called by the deterministic gate."
|
||||
"Expected note creation to return T")
|
||||
(is (uiop:file-exists-p (merge-pathnames "test_note.org" tmp-dir))
|
||||
"Expected file test_note.org to exist"))
|
||||
(uiop:delete-directory-tree (uiop:ensure-directory-pathname tmp-dir) :validate t))))
|
||||
(uiop:delete-directory-tree (uiop:ensure-directory-pathname tmp-dir) :validate t)))))
|
||||
|
||||
Reference in New Issue
Block a user