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:
@@ -402,9 +402,13 @@ Verification of the structural manipulation for Org-mode files and their AST rep
|
||||
|
||||
(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))))
|
||||
|
||||
Reference in New Issue
Block a user