2011-09-12 12:07:21 -04:00
|
|
|
;;; test-org-exp.el --- tests for org-exp.el
|
|
|
|
|
2013-01-01 10:04:24 -05:00
|
|
|
;; Copyright (c) 2010-2013 Eric Schulte
|
2011-09-12 12:07:21 -04:00
|
|
|
;; Authors: Eric Schulte
|
|
|
|
|
2012-12-13 11:24:19 -05:00
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2011-09-12 12:07:21 -04:00
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
;;; Code:
|
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"
|
2012-12-20 12:54:57 -05:00
|
|
|
(org-export-as-ascii nil nil 'string)))))
|
2011-09-20 03:44:24 -04:00
|
|
|
|
|
|
|
(provide 'test-org-exp)
|