summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2011-09-21 06:57:07 -0600
committerEric Schulte <schulte.eric@gmail.com>2011-09-21 09:10:22 -0600
commit12f0fb2d759ef5d2a8e21c0c8c64bd385bb6a84d (patch)
treea180cb8ec9a8beebf87163772fbe930864b3d7c7
parentcfc019073e44567812a4c8dc8f9f6eff885b0d71 (diff)
downloadorg-mode-12f0fb2d759ef5d2a8e21c0c8c64bd385bb6a84d.tar.gz
adding a file for R tests
* testing/lisp/test-ob-R.el (test-ob-R/simple-session): Simple session test.
-rw-r--r--testing/lisp/test-ob-R.el26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/lisp/test-ob-R.el b/testing/lisp/test-ob-R.el
new file mode 100644
index 0000000..57acdff
--- /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
+