org-mode/testing/lisp/test-ob-R.el

31 lines
767 B
EmacsLisp
Raw Normal View History

2011-09-21 15:31:38 -04:00
;;; test-ob-R.el --- tests for ob-R.el
;; Copyright (c) 2011 Eric Schulte
;; Authors: Eric Schulte
;; Released under the GNU General Public License version 3
;; see: http://www.gnu.org/licenses/gpl-3.0.html
(org-test-for-executable "R")
(unless (featurep 'ess)
(throw 'missing-test-dependency "ESS"))
(let ((load-path (cons (expand-file-name
".." (file-name-directory
(or load-file-name buffer-file-name)))
load-path)))
(require 'org-test)
(require 'org-test-ob-consts))
2011-09-21 15:31:38 -04:00
(require 'ob-R)
(ert-deftest test-ob-R/simple-session ()
(org-test-with-temp-text
"#+begin_src R :session R\n paste(\"Yep!\")\n#+end_src\n"
(should (string= "Yep!" (org-babel-execute-src-block)))))
2011-09-21 15:31:38 -04:00
(provide 'test-ob-R)
2011-09-21 15:31:38 -04:00
;;; test-ob-R.el ends here