12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- (ert-deftest test-org-pcomplete/prop ()
- "Test property completion."
-
-
-
-
-
- (should
- (equal
- "* a\n:PROPERTIES:\n:pname: \n:END:\n* b\n:PROPERTIES:\n:pname: pvalue\n:END:\n"
- (org-test-with-temp-text "* a\n:PROPERTIES:\n:pna<point>\n:END:\n* b\n:PROPERTIES:\n:pname: pvalue\n:END:\n"
- (flet ((y-or-n-p (prompt) (error "Should not be called")))
- (pcomplete))
- (buffer-string)))))
- (ert-deftest test-org-pcomplete/keyword ()
- "Test keyword and block completion."
- (should
- (equal
- "#+startup: "
- (org-test-with-temp-text "#+start<point>"
- (pcomplete)
- (buffer-string))))
- (should
- (equal
- "#+begin_center"
- (org-test-with-temp-text "#+begin_ce<point>"
- (pcomplete)
- (buffer-string)))))
- (provide 'test-org-pcomplete)
|