Browse Source

tests: ensure un-named variables are assigned in the correct order -- passing all tests

Eric Schulte 14 years ago
parent
commit
e28cba02dd
2 changed files with 4 additions and 1 deletions
  1. 1 0
      testing/examples/babel.org
  2. 3 1
      testing/lisp/test-ob-lob.el

+ 1 - 0
testing/examples/babel.org

@@ -155,6 +155,7 @@
 #+call: echo("testing") :results vector
 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)
 
 * parsing header arguments
   :PROPERTIES:

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

@@ -54,7 +54,9 @@
 				(org-babel-lob-get-info))))
     (forward-line 1) (beginning-of-line) (forward-char 27)
     (should (string= "testing" (caar (org-babel-lob-execute
-				      (org-babel-lob-get-info)))))))
+				      (org-babel-lob-get-info)))))
+    (forward-line 1) (beginning-of-line)
+    (should (= 4 (org-babel-lob-execute (org-babel-lob-get-info))))))
 
 (provide 'test-ob-lob)