org.el (org-make-org-heading-search-string): Rewrite using org-element.el
[org-mode.git] / testing / lisp / test-org-exp.el
blobc6acb7e7fae5342d5a0eaddfaefcf96e5dc2e32e
1 ;;; test-org-exp.el --- tests for org-exp.el
3 ;; Copyright (c) 2010-2012 Eric Schulte
4 ;; Authors: Eric Schulte
6 ;; This file is not part of GNU Emacs.
8 ;; This program is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation, either version 3 of the License, or
11 ;; (at your option) any later version.
13 ;; This program is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details.
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
21 ;;; Code:
22 (ert-deftest test-org-exp/stripping-commas ()
23 "Test the stripping of commas from within blocks during export."
24 (org-test-at-id "76d3a083-67fa-4506-a41d-837cc48158b5"
25 ;; don't strip internal commas
26 (org-narrow-to-subtree)
27 (should (string-match
28 ", 2"
29 (org-export-as-ascii nil nil 'string)))))
31 (provide 'test-org-exp)