Explorar o código

ob-tests: adding tests of new un-named arguments

Eric Schulte %!s(int64=14) %!d(string=hai) anos
pai
achega
550d24aa8e
Modificáronse 2 ficheiros con 8 adicións e 0 borrados
  1. 2 0
      testing/examples/babel.org
  2. 6 0
      testing/lisp/test-ob-lob.el

+ 2 - 0
testing/examples/babel.org

@@ -150,6 +150,8 @@
 #+call: echo(input="testing") :results vector
 #+call: echo[:var input="testing"]()
 #+call: echo[:var input="testing"]() :results vector
+#+call: echo("testing")
+#+call: echo("testing") :results vector
 
 * parsing header arguments
   :PROPERTIES:

+ 6 - 0
testing/lisp/test-ob-lob.el

@@ -41,6 +41,12 @@
     (should (string= "testing" (org-babel-lob-execute
     				(org-babel-lob-get-info))))
     (forward-line 1)
+    (should (string= "testing" (caar (org-babel-lob-execute
+    				      (org-babel-lob-get-info)))))
+    (forward-line 1)
+    (should (string= "testing" (org-babel-lob-execute
+				(org-babel-lob-get-info))))
+    (forward-line 1)
     (should (string= "testing" (caar (org-babel-lob-execute
     				      (org-babel-lob-get-info)))))))