test-org-exp.el 735 B

1234567891011121314151617181920212223
  1. ;;; test-org-exp.el --- tests for org-exp.el
  2. ;; Copyright (c) 2010 Eric Schulte
  3. ;; Authors: Eric Schulte
  4. ;; Released under the GNU General Public License version 3
  5. ;; see: http://www.gnu.org/licenses/gpl-3.0.html
  6. (let ((load-path (cons (expand-file-name
  7. ".." (file-name-directory
  8. (or load-file-name buffer-file-name)))
  9. load-path)))
  10. (require 'org-test)
  11. (require 'org-test-ob-consts))
  12. (ert-deftest test-org-exp/stripping-commas ()
  13. "Test the stripping of commas from within blocks during export."
  14. (org-test-at-id "76d3a083-67fa-4506-a41d-837cc48158b5"
  15. ;; don't strip internal commas
  16. (org-narrow-to-subtree)
  17. (should (string-match
  18. ", 2"
  19. (org-export-as-ascii nil nil nil 'string)))))