|
@@ -39,6 +39,26 @@
|
|
|
(org-babel-execute-maybe)
|
|
|
(buffer-string))))
|
|
|
|
|
|
+(ert-deftest test-ob-scheme/verbatim ()
|
|
|
+ "Test verbatim output."
|
|
|
+ (should
|
|
|
+ (equal ": (1 2 3)\n"
|
|
|
+ (org-test-with-temp-text "#+begin_src scheme :results verbatim\n'(1 2 3)\n#+end_src"
|
|
|
+ (org-babel-execute-src-block)
|
|
|
+ (let ((case-fold-search t)) (search-forward "#+results"))
|
|
|
+ (buffer-substring-no-properties (line-beginning-position 2)
|
|
|
+ (point-max))))))
|
|
|
+
|
|
|
+(ert-deftest test-ob-scheme/list ()
|
|
|
+ "Test list output."
|
|
|
+ (should
|
|
|
+ (equal "- 1\n- 2\n- 3\n"
|
|
|
+ (org-test-with-temp-text "#+begin_src scheme :results list\n'(1 2 3)\n#+end_src"
|
|
|
+ (org-babel-execute-maybe)
|
|
|
+ (let ((case-fold-search t)) (search-forward "#+results"))
|
|
|
+ (buffer-substring-no-properties (line-beginning-position 2)
|
|
|
+ (point-max))))))
|
|
|
+
|
|
|
(ert-deftest test-ob-scheme/prologue ()
|
|
|
"Test :prologue parameter."
|
|
|
(should
|