summaryrefslogtreecommitdiffstats
path: root/Lib/test/re_tests.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-15 15:44:58 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-15 15:44:58 (GMT)
commitcf00505325e76c2faa50c8935b51c78b905c9036 (patch)
treeccceb93efab81a1e7f2e6c78cbea0594f83e6683 /Lib/test/re_tests.py
parent827ea7cf5d70a835c828edf646f488b79bf95a24 (diff)
downloadcpython-cf00505325e76c2faa50c8935b51c78b905c9036.zip
cpython-cf00505325e76c2faa50c8935b51c78b905c9036.tar.gz
cpython-cf00505325e76c2faa50c8935b51c78b905c9036.tar.bz2
Added tests for \b, \B (AMK).
Diffstat (limited to 'Lib/test/re_tests.py')
-rwxr-xr-xLib/test/re_tests.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/test/re_tests.py b/Lib/test/re_tests.py
index 9143938..9447dd2 100755
--- a/Lib/test/re_tests.py
+++ b/Lib/test/re_tests.py
@@ -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-'),