Explorar o código

Add test related to a5a676e6092898895b61c00229e07910507f8f0c

* testing/lisp/test-org-element.el: Add test.
Nicolas Goaziou %!s(int64=12) %!d(string=hai) anos
pai
achega
c66641e1ea
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      testing/lisp/test-org-element.el

+ 6 - 0
testing/lisp/test-org-element.el

@@ -2748,6 +2748,12 @@ Paragraph \\alpha."
        (org-test-with-temp-text "#+DATE: {{{macro}}}"
 	 (progn (search-forward "{")
 		(org-element-type (org-element-context))))))
+  ;; Do not find objects in table rules.
+  (should
+   (eq 'table-row
+       (org-test-with-temp-text "| a | b |\n+---+---+\n| c | d |"
+	 (forward-line)
+	 (org-element-type (org-element-context)))))
   ;; Find objects in parsed affiliated keywords.
   (should
    (eq 'macro