From 25ff6bcb72a8087a929a15521ad733b38f0d77cb Mon Sep 17 00:00:00 2001 From: Matthew DeVore <matvore@google.com> Date: Wed, 25 Jul 2018 07:26:31 -0700 Subject: [PATCH] DeSerializationTest: extend test for escaping a ' --- src/test/java/com/dd/plist/test/DeSerializationTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/com/dd/plist/test/DeSerializationTest.java b/src/test/java/com/dd/plist/test/DeSerializationTest.java index f9912b5..567d447 100644 --- a/src/test/java/com/dd/plist/test/DeSerializationTest.java +++ b/src/test/java/com/dd/plist/test/DeSerializationTest.java @@ -335,6 +335,7 @@ public void testParseSpecialCharacters() throws Exception { "c = \"xyz\\b\";\n" + "d = \"\\tasdf\";\n" + "e = \"\\\\ \\\"\";\n" + + "f = \"a \\' b\";\n" + "}"; NSDictionary dict = (NSDictionary)ASCIIPropertyListParser.parse(asciiPropertyList.getBytes(Charset.forName("UTF-8"))); assertEquals("abc \n def", dict.get("a").toString()); @@ -342,5 +343,6 @@ public void testParseSpecialCharacters() throws Exception { assertEquals("xyz\b", dict.get("c").toString()); assertEquals("\tasdf", dict.get("d").toString()); assertEquals("\\ \"", dict.get("e").toString()); + assertEquals("a ' b", dict.get("f").toString()); } }