#50 use different tests for different outputs

This commit is contained in:
Carlo Sciolla 2016-12-25 20:28:40 +01:00
parent 9ac32f1c19
commit 4d2bffd2cc
No known key found for this signature in database
GPG Key ID: BA5D71E6F3C580C1
1 changed files with 7 additions and 2 deletions

View File

@ -15,11 +15,16 @@
(should (equal (replace-regexp-in-string " " "~" (read-test-file output))
(replace-regexp-in-string " " "~" (read-preview-buffer)))))
(ert-deftest preview-test ()
(ert-deftest preview-utxt-test ()
(setq-local plantuml-jar-path plantuml-test-jar-path)
(setq-local plantuml-output-type "utxt")
(assert-preview "a-b.puml" "a-b.txt"))
(ert-deftest preview-unicode-test ()
(setq-local plantuml-jar-path plantuml-test-jar-path)
(setq-local plantuml-output-type "utxt")
(assert-preview "a-b.puml" "a-b.txt")
(assert-preview "unicode.puml" "unicode.txt"))
(provide 'plantuml-mode-preview-test)