Skip to content

Commit

Permalink
DeSerializationTest: extend test for escaping a '
Browse files Browse the repository at this point in the history
  • Loading branch information
matvore committed Aug 17, 2018
1 parent 44ecdc2 commit 25ff6bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/com/dd/plist/test/DeSerializationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,14 @@ 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());
assertEquals("\r", dict.get("b").toString());
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());
}
}

0 comments on commit 25ff6bc

Please sign in to comment.