Skip to content

Commit caf0bfe

Browse files
authored
Merge pull request #951 from markshannon/python-string-tests
Python: Add a test for handling of corner-case strings.
2 parents 2dea0b4 + 76d1fba commit caf0bfe

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
| test.py:3:1:3:33 | test.py:3 | u' | [\ufffd-\ufffd][\ufffd-\ufffd] |
2+
| test.py:5:1:5:26 | test.py:5 | u' | [\ufffd-\ufffd] |
3+
| test.py:8:1:8:20 | test.py:8 | u' | {}\r{}{:<{width}} |
4+
| test.py:9:1:9:15 | test.py:9 | u' | {}\r{}{:<{}} |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
import python
3+
4+
from StrConst s
5+
select s.getLocation(), s.getPrefix(), s.getText()
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
#Half Surrogate pairs
3+
u'[\uD800-\uDBFF][\uDC00-\uDFFF]'
4+
#Outside BMP
5+
u'[\U00010000-\U0010ffff]'
6+
7+
#Troublesome format strings
8+
u'{}\r{}{:<{width}}'
9+
u'{}\r{}{:<{}}'

0 commit comments

Comments
 (0)