#50 Added (failing) unit test for unicode support
This commit is contained in:
parent
f8148e9d5f
commit
06a12c3d16
|
@ -8,15 +8,18 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(defun assert-preview (puml output)
|
(defun assert-preview (puml output &optional format)
|
||||||
|
(unless format (setq-local plantuml-output-type "utxt"))
|
||||||
(plantuml-preview-string 42 (read-test-file puml))
|
(plantuml-preview-string 42 (read-test-file puml))
|
||||||
(sleep-for 2)
|
(sleep-for 3)
|
||||||
(should (equal (read-test-file output) (read-preview-buffer))))
|
(should (equal (read-test-file output) (read-preview-buffer))))
|
||||||
|
|
||||||
(ert-deftest preview-test ()
|
(ert-deftest preview-test ()
|
||||||
(setq-local plantuml-jar-path plantuml-test-jar-path)
|
(setq-local plantuml-jar-path plantuml-test-jar-path)
|
||||||
(setq-local plantuml-output-type "utxt")
|
(setq-local plantuml-output-type "utxt")
|
||||||
(assert-preview "a-b.puml" "a-b.txt"))
|
|
||||||
|
(assert-preview "a-b.puml" "a-b.txt")
|
||||||
|
(assert-preview "unicode.puml" "unicode.txt"))
|
||||||
|
|
||||||
(provide 'plantuml-mode-preview-test)
|
(provide 'plantuml-mode-preview-test)
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
|
@ -0,0 +1,5 @@
|
||||||
|
@startuml
|
||||||
|
|
||||||
|
lang -> 日本語
|
||||||
|
|
||||||
|
@enduml
|
|
@ -0,0 +1,8 @@
|
||||||
|
┌────┐ ┌──────┐
|
||||||
|
│lang│ │日本語│
|
||||||
|
└──┬─┘ └───┬──┘
|
||||||
|
│ │
|
||||||
|
│────────-----──>│
|
||||||
|
┌──┴─┐ ┌───┴──┐
|
||||||
|
│lang│ │日本語│
|
||||||
|
└────┘ └──────┘
|
Loading…
Reference in New Issue