2011-09-12 12:07:21 -04:00
|
|
|
;;; test-org-exp.el --- tests for org-exp.el
|
|
|
|
|
2012-01-03 12:47:01 -05:00
|
|
|
;; Copyright (c) 2010-2012 Eric Schulte
|
2011-09-12 12:07:21 -04:00
|
|
|
;; Authors: Eric Schulte
|
|
|
|
|
|
|
|
;; Released under the GNU General Public License version 3
|
|
|
|
;; see: http://www.gnu.org/licenses/gpl-3.0.html
|
|
|
|
|
|
|
|
(let ((load-path (cons (expand-file-name
|
2011-09-20 03:44:24 -04:00
|
|
|
".." (file-name-directory
|
|
|
|
(or load-file-name buffer-file-name)))
|
|
|
|
load-path)))
|
2011-09-12 12:07:21 -04:00
|
|
|
(require 'org-test)
|
2011-09-20 03:44:24 -04:00
|
|
|
(require 'org-test-ob-consts)
|
|
|
|
(require 'org-ascii))
|
2011-09-12 12:07:21 -04:00
|
|
|
|
2011-09-06 23:58:51 -04:00
|
|
|
(ert-deftest test-org-exp/stripping-commas ()
|
|
|
|
"Test the stripping of commas from within blocks during export."
|
|
|
|
(org-test-at-id "76d3a083-67fa-4506-a41d-837cc48158b5"
|
|
|
|
;; don't strip internal commas
|
|
|
|
(org-narrow-to-subtree)
|
|
|
|
(should (string-match
|
2011-09-20 03:44:24 -04:00
|
|
|
", 2"
|
|
|
|
(org-export-as-ascii nil nil nil 'string)))))
|
|
|
|
|
|
|
|
(provide 'test-org-exp)
|