Skip to content

Commit

Permalink
Add some quoted string parsing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
madig committed Dec 1, 2019
1 parent 0e58a15 commit eaabbd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ def test_parse_unquoted_plist_string_EOF():
("a", "a"),
('"a"', "a"),
("'a'", "a"),
('"a\\012b"', ("a\nb")),
('"a\\012b"', "a\nb"),
(r'"subCategory == \"Currency\""', 'subCategory == "Currency"'),
(r"distributed on an \"AS IS\" BASIS", 'distributed on an "AS IS" BASIS'),
(r'"a\"\\012\"b"', 'a"\n"b'),
# surrogate pair gets decoded as a single scalar value
('"\\UD83D\\UDCA9"', "\U0001F4A9"), # '💩'
# surrogate that don't go in pairs are simply passed through
Expand Down

0 comments on commit eaabbd8

Please sign in to comment.