diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2011-09-15 15:29:10 -0600 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2011-09-15 15:29:10 -0600 |
commit | 7eaa67260b70d59aa695e0e0676ed94b3c4724fa (patch) | |
tree | 8430c90937cd72d1ba3ac3efead918d2538458a1 | |
parent | 267015b24a4e6e28bc7a2740dad9ca02d6cea8e6 (diff) | |
download | org-mode-7eaa67260b70d59aa695e0e0676ed94b3c4724fa.tar.gz |
test the combination of code block results wrapper and type
* testing/examples/babel.org (an): Test the combination of code block
results wrapper and type.
* testing/lisp/test-ob.el (test-org-babel/combining-scalar-and-raw-result-types):
Test the combination of code block results wrapper and type.
-rw-r--r-- | testing/examples/babel.org | 18 | ||||
-rw-r--r-- | testing/lisp/test-ob.el | 12 |
2 files changed, 30 insertions, 0 deletions
diff --git a/testing/examples/babel.org b/testing/examples/babel.org index 5b7f2ef..b892124 100644 --- a/testing/examples/babel.org +++ b/testing/examples/babel.org @@ -289,3 +289,21 @@ src_sh{echo "One"} block at start of line One spaced block in src_sh{ echo "middle" } of line src_sh{echo 2} blocks on the src_emacs-lisp{"same"} line Inline block with src_sh[:results silent]{ echo "parameters" }. +* returning file names -- interpreted as lists + :PROPERTIES: + :ID: a73a2ab6-b8b2-4c0e-ae7f-23ad14eab7bc + :END: + +#+begin_src sh :results scalar + echo "[[file:./cv.cls]]" +#+end_src + +#+results: +: [[file:./cv.cls]] + +#+begin_src sh :results raw scalar + echo "[[file:./cv.cls]]" +#+end_src + +#+results: +[[file:./cv.cls]] diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el index 1ed9474..2e71a59 100644 --- a/testing/lisp/test-ob.el +++ b/testing/lisp/test-ob.el @@ -409,6 +409,18 @@ (should (string= (concat test-line " =\"x\"=") (buffer-substring-no-properties (point-min) (point-max))))))) +(ert-deftest test-org-babel/combining-scalar-and-raw-result-types () + (flet ((next-result () + (org-babel-next-src-block) + (org-babel-execute-src-block) + (goto-char (org-babel-where-is-src-block-result)) + (forward-line 1))) + (org-test-at-id "a73a2ab6-b8b2-4c0e-ae7f-23ad14eab7bc" + (next-result) + (should (org-babel-in-example-or-verbatim)) + (next-result) + (should (not (org-babel-in-example-or-verbatim)))))) + (provide 'test-ob) ;;; test-ob ends here |