From 9ac32f1c1995259a6e9af8ff10dd55e0057426c2 Mon Sep 17 00:00:00 2001 From: Carlo Sciolla Date: Sun, 25 Dec 2016 20:13:23 +0100 Subject: [PATCH] #50 Added support for unicode rendering --- test/plantuml-preview-test.el | 3 ++- test/resources/unicode.txt | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/plantuml-preview-test.el b/test/plantuml-preview-test.el index 3bcd862..8ec2cc0 100644 --- a/test/plantuml-preview-test.el +++ b/test/plantuml-preview-test.el @@ -12,7 +12,8 @@ (unless format (setq-local plantuml-output-type "utxt")) (plantuml-preview-string 42 (read-test-file puml)) (sleep-for 3) - (should (equal (read-test-file output) (read-preview-buffer)))) + (should (equal (replace-regexp-in-string " " "~" (read-test-file output)) + (replace-regexp-in-string " " "~" (read-preview-buffer))))) (ert-deftest preview-test () (setq-local plantuml-jar-path plantuml-test-jar-path) diff --git a/test/resources/unicode.txt b/test/resources/unicode.txt index f6c945e..5e5ddca 100644 --- a/test/resources/unicode.txt +++ b/test/resources/unicode.txt @@ -1,9 +1,8 @@ ┌────┐ ┌───┐ │lang│ │日本語│ └─┬──┘ └─┬─┘ - │ │ - │ ─────────────>│ + │ │ + │ ─────────────>│ ┌─┴──┐ ┌─┴─┐ │lang│ │日本語│ └────┘ └───┘ -