Skip to content

Commit

Permalink
Added str.isprintable test cases for Unicode surrogate pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
BPYap committed Mar 7, 2018
1 parent 0e035a3 commit 1bee7fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/datatypes/test_str.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,14 @@ def test_isprintable_missing_cases(self):
for test in tests:
print(test.isprintable())
""")

@expectedFailure
def test_isprintable_surrogate_cases(self):
self.assertCodeExecution(r"""
tests = ['\ud800', '\udbff', '\udc00', '\udfff']
for test in tests:
print(test.isprintable())
""")

def test_repr(self):
self.assertCodeExecution(r"""
Expand Down

0 comments on commit 1bee7fc

Please sign in to comment.