* testing/lisp/test-ob-R.el (ob-session-R-result-value): New test

This commit is contained in:
Ihor Radchenko 2023-04-18 15:04:57 +02:00
parent 83e446ea86
commit 3c449cc438
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 10 additions and 0 deletions

View File

@ -272,6 +272,16 @@ log10(10)
(string= (concat src-block result)
(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
(ert-deftest ob-R-nested-list ()