test-org-exp.el 1.1 KB

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