forked from mirrors/org-mode
* testing/lisp/test-ob-R.el (ob-session-R-result-value): New test
This commit is contained in:
parent
83e446ea86
commit
3c449cc438
|
@ -272,6 +272,16 @@ log10(10)
|
||||||
(string= (concat src-block result)
|
(string= (concat src-block result)
|
||||||
(buffer-string)))))))
|
(buffer-string)))))))
|
||||||
|
|
||||||
|
(ert-deftest ob-session-R-result-value ()
|
||||||
|
(let (ess-ask-for-ess-directory
|
||||||
|
ess-history-file
|
||||||
|
org-confirm-babel-evaluate
|
||||||
|
(org-babel-temporary-directory "/tmp"))
|
||||||
|
(org-test-with-temp-text
|
||||||
|
"#+begin_src R :session R :results value \n 1:50\n#+end_src"
|
||||||
|
(should
|
||||||
|
(equal (number-sequence 1 50)
|
||||||
|
(mapcar #'car (org-babel-execute-src-block)))))))
|
||||||
|
|
||||||
;; test for printing of (nested) list
|
;; test for printing of (nested) list
|
||||||
(ert-deftest ob-R-nested-list ()
|
(ert-deftest ob-R-nested-list ()
|
||||||
|
|
Loading…
Reference in a new issue