diff options
author | Fred Drake <fdrake@acm.org> | 2000-10-23 17:22:08 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-10-23 17:22:08 +0000 |
commit | 004d5e6880940ddbb38460986ac62ee0f1bae97d (patch) | |
tree | 682e75e743f5c22206a65ac0262c03ce37e4fbee /Lib/test/regex_tests.py | |
parent | 2e6d25c5bbf3e2d4f18191c0836b5ed8f94dc850 (diff) | |
download | cpython-git-004d5e6880940ddbb38460986ac62ee0f1bae97d.tar.gz |
Make reindent.py happy (convert everything to 4-space indents!).
Diffstat (limited to 'Lib/test/regex_tests.py')
-rw-r--r-- | Lib/test/regex_tests.py | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/Lib/test/regex_tests.py b/Lib/test/regex_tests.py index dcb980a006..e004ad08b3 100644 --- a/Lib/test/regex_tests.py +++ b/Lib/test/regex_tests.py @@ -1,6 +1,5 @@ - # Regex test suite and benchmark suite v1.5a2 -# Due to the use of r"aw" strings, this file will +# Due to the use of r"aw" strings, this file will # only work with Python 1.5 or higher. # The 3 possible outcomes for each pattern @@ -9,22 +8,22 @@ # Benchmark suite (needs expansion) # # The benchmark suite does not test correctness, just speed. The -# first element of each tuple is the regex pattern; the second is a +# first element of each tuple is the regex pattern; the second is a # string to match it against. The benchmarking code will embed the -# second string inside several sizes of padding, to test how regex +# second string inside several sizes of padding, to test how regex # matching performs on large strings. benchmarks = [ - ('Python', 'Python'), # Simple text literal - ('.*Python', 'Python'), # Bad text literal + ('Python', 'Python'), # Simple text literal + ('.*Python', 'Python'), # Bad text literal ('.*Python.*', 'Python'), # Worse text literal - ('.*\\(Python\\)', 'Python'), # Bad text literal with grouping + ('.*\\(Python\\)', 'Python'), # Bad text literal with grouping - ('(Python\\|Perl\\|Tcl', 'Perl'), # Alternation - ('\\(Python\\|Perl\\|Tcl\\)', 'Perl'), # Grouped alternation - ('\\(Python\\)\\1', 'PythonPython'), # Backreference -# ('\\([0a-z][a-z]*,\\)+', 'a5,b7,c9,'), # Disable the fastmap optimization - ('\\([a-z][a-z0-9]*,\\)+', 'a5,b7,c9,') # A few sets + ('(Python\\|Perl\\|Tcl', 'Perl'), # Alternation + ('\\(Python\\|Perl\\|Tcl\\)', 'Perl'), # Grouped alternation + ('\\(Python\\)\\1', 'PythonPython'), # Backreference +# ('\\([0a-z][a-z]*,\\)+', 'a5,b7,c9,'), # Disable the fastmap optimization + ('\\([a-z][a-z0-9]*,\\)+', 'a5,b7,c9,') # A few sets ] # Test suite (for verifying correctness) @@ -286,4 +285,3 @@ tests = [ ('a\>', 'a!', SUCCEED, 'found', 'a'), ('a\>', 'a', SUCCEED, 'found', 'a'), ] - |