Browse Source

adding a file for R tests

* testing/lisp/test-ob-R.el (test-ob-R/simple-session): Simple session
  test.
Eric Schulte 13 years ago
parent
commit
12f0fb2d75
1 changed files with 26 additions and 0 deletions
  1. 26 0
      testing/lisp/test-ob-R.el

+ 26 - 0
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
+