1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- (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"
- (cl-letf (((symbol-function 'y-or-n-p)
- (lambda (_) (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)
|