Skip to content

Commit 0830382

Browse files
committed
testpy: Add some tests
1 parent 97a73c7 commit 0830382

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testpy.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,12 @@ def main():
12481248
x2("(.)(?<a>a)(?<a>b)\\k<a>", "xaba", 0, 4)
12491249
x2("\\p{Print}+", "\n a", 1, 3)
12501250
x2("\\p{Graph}+", "\n a", 2, 3)
1251+
x2("\\p{^Space}", "x", 0, 1)
1252+
x2("\\P{^Space}", " ", 0, 1)
1253+
n("\\px", "") # warning: invalid Unicode Property
1254+
x2("[\\p{^Space}]", "x", 0, 1)
1255+
x2("[\\P{^Space}]", " ", 0, 1)
1256+
n("[\\px]", "") # warning: invalid Unicode Property
12511257
n("a(?!b)", "ab");
12521258
x2("(?:(.)\\1)*", "a" * 300, 0, 300)
12531259
x2("\\cA\\C-B\\a[\\b]\\t\\n\\v\\f\\r\\e\\c?", "\x01\x02\x07\x08\x09\x0a\x0b\x0c\x0d\x1b\x7f", 0, 11)

0 commit comments

Comments
 (0)