test-org-exp.el 858 B

1234567891011121314151617181920212223242526
  1. ;;; test-org-exp.el --- tests for org-exp.el
  2. ;; Copyright (c) 2010-2012 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. (require 'org-ascii))
  13. (ert-deftest test-org-exp/stripping-commas ()
  14. "Test the stripping of commas from within blocks during export."
  15. (org-test-at-id "76d3a083-67fa-4506-a41d-837cc48158b5"
  16. ;; don't strip internal commas
  17. (org-narrow-to-subtree)
  18. (should (string-match
  19. ", 2"
  20. (org-export-as-ascii nil nil nil 'string)))))
  21. (provide 'test-org-exp)