فهرست منبع

test-ob-python.el: Add test for multiline-string variables

* testing/lisp/test-ob-python.el (test-ob-python/multiline-var): Add
test for multiline-string variable issue that was fixed in 6149b6cb6.
Jack Kamm 5 سال پیش
والد
کامیت
eecee22665
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      testing/lisp/test-ob-python.el

+ 8 - 0
testing/lisp/test-ob-python.el

@@ -173,6 +173,14 @@ _ = 'failure'
 #+end_src"
 	    (org-babel-execute-src-block)))))
 
+(ert-deftest test-ob-python/multiline-var ()
+  (should
+   (equal "a\nb\nc"
+	  (org-test-with-temp-text "#+begin_src python :var text=\"a\\nb\\nc\"
+return text
+#+end_src"
+	    (org-babel-execute-src-block)))))
+
 (provide 'test-ob-python)
 
 ;;; test-ob-python.el ends here