1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- (defmacro test-org-in-property-buffer (&rest body)
- `(with-temp-buffer
- (insert-file-contents (expand-file-name "property-inheritance.org"
- org-test-example-dir))
- (org-mode)
- ,@body))
- (def-edebug-spec test-org-in-property-buffer (body))
- (ert-deftest test-org-property-accumulation-top-use ()
- (test-org-in-property-buffer
- (goto-char (point-min))
- (org-babel-next-src-block 1)
- (should (equal 3 (org-babel-execute-src-block)))))
- (ert-deftest test-org-property-accumulation-overwrite-use ()
- (test-org-in-property-buffer
- (goto-char (point-min))
- (org-babel-next-src-block 2)
- (should (= 7 (org-babel-execute-src-block)))))
- (ert-deftest test-org-property-accumulation-append-use ()
- (test-org-in-property-buffer
- (goto-char (point-min))
- (org-babel-next-src-block 3)
- (should (= 6 (org-babel-execute-src-block)))))
- (provide 'test-ob-R)
|