Still trying to make tests use JAR exec mode

This commit is contained in:
Carlo Sciolla 2019-05-25 20:44:13 +02:00
parent 33b8e4529d
commit 4ca0e386a3
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,10 +8,13 @@
;;; Code:
(defun assert-preview (puml output &optional format)
(defun assert-preview (puml output &optional format mode)
(if format
(setq plantuml-output-type format)
(setq plantuml-output-type "txt"))
(if mode
(setq plantuml-exec-mode mode)
(setq plantuml-exec-mode 'jar))
(plantuml-preview-string 42 (read-test-file puml))
(sleep-for 3)
(should (equal (format-preview-output (replace-regexp-in-string " " "~" (read-test-file output)))