From 39167c3252310a15363572d9159b8f17f5a19bb8 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Mon, 11 Jun 2018 18:58:54 -0400 Subject: [PATCH] Add Attribute Values Test Case Issue: #189 --- src/test/extension.test.ts | 4 ++++ src/test/test-data/issue-189.formatted.xml | 5 +++++ src/test/test-data/issue-189.unformatted.xml | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 src/test/test-data/issue-189.formatted.xml create mode 100644 src/test/test-data/issue-189.unformatted.xml diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index 7eb816a..45666e7 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -76,6 +76,10 @@ describe("V2XmlFormatter", () => { testFormatter(xmlFormatter, options, "issue-187"); }); + it("should not ruin attributes with unusual characters", () => { + testFormatter(xmlFormatter, options, "issue-189"); + }); + }); }); diff --git a/src/test/test-data/issue-189.formatted.xml b/src/test/test-data/issue-189.formatted.xml new file mode 100644 index 0000000..b3a3d19 --- /dev/null +++ b/src/test/test-data/issue-189.formatted.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/src/test/test-data/issue-189.unformatted.xml b/src/test/test-data/issue-189.unformatted.xml new file mode 100644 index 0000000..952ff72 --- /dev/null +++ b/src/test/test-data/issue-189.unformatted.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file