#50 switch output type when needed

This commit is contained in:
Carlo Sciolla 2016-12-25 20:30:50 +01:00
parent 8daf8e24fa
commit e671431ee1
No known key found for this signature in database
GPG Key ID: BA5D71E6F3C580C1
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@
;;; Code:
(defun assert-preview (puml output)
(defun assert-preview (puml output &optional format)
(if format
(setq plantuml-output-type format)
(setq plantuml-output-type "utxt"))
(plantuml-preview-string 42 (read-test-file puml))
(sleep-for 3)
(should (equal (replace-regexp-in-string " " "~" (read-test-file output))