Browse Source

test: another order of arguments test

Eric Schulte 13 years ago
parent
commit
8348f9cfbb
2 changed files with 9 additions and 1 deletions
  1. 6 0
      testing/examples/babel.org
  2. 3 1
      testing/lisp/test-ob-lob.el

+ 6 - 0
testing/examples/babel.org

@@ -157,6 +157,12 @@ This is an inline call call_echo(input="testing") embedded in prose.
 This is an inline call call_echo(input="testing")[:results vector] embedded in prose.
 #+call: lob-minus(8, 4)
 call_echo("testing")
+call_concat(1,2,3)
+
+#+source: concat
+#+begin_src emacs-lisp :var a=0 :var b=0 :var c=0
+  (format "%S%S%S" a b c)
+#+end_src
 
 * exporting an lob call line
   :PROPERTIES:

+ 3 - 1
testing/lisp/test-ob-lob.el

@@ -59,7 +59,9 @@
     (should (= 4 (org-babel-lob-execute (org-babel-lob-get-info))))
     (forward-line 1)
     (should (string= "testing" (org-babel-lob-execute
-				(org-babel-lob-get-info))))))
+				(org-babel-lob-get-info))))
+    (forward-line 1)
+    (should (string= "123" (org-babel-lob-execute (org-babel-lob-get-info))))))
 
 (ert-deftest test-ob-lob/export-lob-lines ()
   "Test the export of a variety of library babel call lines."