diff options
author | Guido van Rossum <guido@python.org> | 1997-07-15 15:40:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-07-15 15:40:57 (GMT) |
commit | 847ed4afb57a4d5449e6a28de13dcb5d8f9840fb (patch) | |
tree | d8fdbfa0e6e955f2628da0333c34f05fcc44737c /Lib/test/output/test_re | |
parent | 531097502cc549a8ec5bbe29c90e7b8850cbff24 (diff) | |
download | cpython-847ed4afb57a4d5449e6a28de13dcb5d8f9840fb.zip cpython-847ed4afb57a4d5449e6a28de13dcb5d8f9840fb.tar.gz cpython-847ed4afb57a4d5449e6a28de13dcb5d8f9840fb.tar.bz2 |
More tweaks; re.py is nearly there...
Diffstat (limited to 'Lib/test/output/test_re')
-rw-r--r-- | Lib/test/output/test_re | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/test/output/test_re b/Lib/test/output/test_re index 7ba8cfa..182ca05 100644 --- a/Lib/test/output/test_re +++ b/Lib/test/output/test_re @@ -34,7 +34,6 @@ test_re ('a[b-d]e', 'ace', 0, 'found', 'ace') ('a[b-d]', 'aac', 0, 'found', 'ac') ('a[-b]', 'a-', 0, 'found', 'a-') -=== Syntax error: ('a[-b]', 'a-', 0, 'found', 'a-') ('a[b-]', 'a-', 2) ('a[]b', '-', 2) ('a[', '-', 2) @@ -43,16 +42,12 @@ test_re ('(abc', '-', 2) ('a]', 'a]', 0, 'found', 'a]') ('a[]]b', 'a]b', 0, 'found', 'a]b') -=== Syntax error: ('a[]]b', 'a]b', 0, 'found', 'a]b') ('a[^bc]d', 'aed', 0, 'found', 'aed') ('a[^bc]d', 'abd', 1) ('a[^-b]c', 'adc', 0, 'found', 'adc') -=== Syntax error: ('a[^-b]c', 'adc', 0, 'found', 'adc') ('a[^-b]c', 'a-c', 1) -=== Syntax error: ('a[^-b]c', 'a-c', 1) ('a[^]b]c', 'a]c', 1) ('a[^]b]c', 'adc', 0, 'found', 'adc') -=== Failed incorrectly ('a[^]b]c', 'adc', 0, 'found', 'adc') ('\\ba\\b', 'a-', 0, '"-"', '-') ('\\ba\\b', '-a', 0, '"-"', '-') ('\\ba\\b', '-a-', 0, '"-"', '-') @@ -64,8 +59,7 @@ test_re ('()ef', 'def', 0, 'found+"-"+g1', 'ef-') === Syntax error: ('()ef', 'def', 0, 'found+"-"+g1', 'ef-') ('$b', 'b', 1) -('a(b', 'a(b', 0, 'found+"-"+g1', 'a(b-None') -=== Syntax error: ('a(b', 'a(b', 0, 'found+"-"+g1', 'a(b-None') +('a\\(b', 'a(b', 0, 'found+"-"+g1', 'a(b-None') ('a\\(*b', 'ab', 0, 'found', 'ab') ('a\\(*b', 'a((b', 0, 'found', 'a((b') ('a\\\\b', 'a\\b', 0, 'found', 'a\\b') @@ -113,7 +107,6 @@ test_re ('\\((.*), (.*)\\)', '(a, b)', 0, 'g2+"-"+g1', 'b-a') ('[k]', 'ab', 1) ('a[-]?c', 'ac', 0, 'found', 'ac') -=== Syntax error: ('a[-]?c', 'ac', 0, 'found', 'ac') ('(abc)\\1', 'abcabc', 0, 'g1', 'abc') ('([a-c]*)\\1', 'abcabc', 0, 'g1', 'abc') ('^(.+)?B', 'AB', 0, 'g1', 'A') |