|
@@ -52,6 +52,29 @@
|
|
|
1
|
|
|
"#+TBLFM: $2 = '(org-sbe identity (x $$1))"))
|
|
|
|
|
|
+(ert-deftest test-ob-table/sbe-list ()
|
|
|
+ "Test that `org-sbe' can correctly handle ranges as lists."
|
|
|
+ (org-test-table-target-expect
|
|
|
+ "
|
|
|
+#+name: concat
|
|
|
+#+begin_src emacs-lisp :eval yes
|
|
|
+ (mapconcat #'identity x \"\")
|
|
|
+#+end_src
|
|
|
+
|
|
|
+| foo | bar | replace |
|
|
|
+"
|
|
|
+ "
|
|
|
+#+name: concat
|
|
|
+#+begin_src emacs-lisp :eval yes
|
|
|
+ (mapconcat #'identity x \"\")
|
|
|
+#+end_src
|
|
|
+
|
|
|
+| foo | bar | foobar |
|
|
|
+"
|
|
|
+ 1
|
|
|
+ "#+TBLFM: $3 = '(org-sbe concat (x (list $1..$2)))"
|
|
|
+ "#+TBLFM: $3 = '(org-sbe concat (x $ (list $1..$2)))"))
|
|
|
+
|
|
|
(provide 'test-ob-table)
|
|
|
|
|
|
;;; test-ob-table.el ends here
|