mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Added tests for \b, \B (AMK).
This commit is contained in:
parent
827ea7cf5d
commit
cf00505325
1 changed files with 13 additions and 0 deletions
|
@ -105,6 +105,19 @@ tests = [
|
|||
('\\by\\b', 'xy', FAIL),
|
||||
('\\by\\b', 'yz', FAIL),
|
||||
('\\by\\b', 'xyz', FAIL),
|
||||
('x\\b', 'xyz', FAIL),
|
||||
('x\\B', 'xyz', SUCCEED, '"-"', '-'),
|
||||
('\\Bz', 'xyz', SUCCEED, '"-"', '-'),
|
||||
('z\\B', 'xyz', FAIL),
|
||||
('\\Bx', 'xyz', FAIL),
|
||||
('\\Ba\\B', 'a-', FAIL, '"-"', '-'),
|
||||
('\\Ba\\B', '-a', FAIL, '"-"', '-'),
|
||||
('\\Ba\\B', '-a-', FAIL, '"-"', '-'),
|
||||
('\\By\\B', 'xy', FAIL),
|
||||
('\\By\\B', 'yz', FAIL),
|
||||
('\\By\\b', 'xy', SUCCEED, '"-"', '-'),
|
||||
('\\by\\B', 'yz', SUCCEED, '"-"', '-'),
|
||||
('\\By\\B', 'xyz', SUCCEED, '"-"', '-'),
|
||||
('ab|cd', 'abc', SUCCEED, 'found', 'ab'),
|
||||
('ab|cd', 'abcd', SUCCEED, 'found', 'ab'),
|
||||
('()ef', 'def', SUCCEED, 'found+"-"+g1', 'ef-'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue