#50 switch output type when needed

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

View File

@ -9,7 +9,9 @@
;;; Code:
(defun assert-preview (puml output &optional format)
(unless format (setq-local plantuml-output-type "utxt"))
(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))