From 12f0fb2d759ef5d2a8e21c0c8c64bd385bb6a84d Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Wed, 21 Sep 2011 06:57:07 -0600 Subject: [PATCH] adding a file for R tests * testing/lisp/test-ob-R.el (test-ob-R/simple-session): Simple session test. --- testing/lisp/test-ob-R.el | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 testing/lisp/test-ob-R.el diff --git a/testing/lisp/test-ob-R.el b/testing/lisp/test-ob-R.el new file mode 100644 index 000000000..57acdff7e --- /dev/null +++ b/testing/lisp/test-ob-R.el @@ -0,0 +1,26 @@ +;;; test-ob-fortran.el --- tests for ob-fortran.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 + +(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)) + +(require 'ob-awk) + +(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))))) + +(provide 'test-ob-fortran) + +;;; test-ob-fortran.el ends here + -- 2.11.4.GIT