summaryrefslogtreecommitdiffstats
path: root/Lib/test/output/test_sre
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-06-30 07:08:20 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-06-30 07:08:20 (GMT)
commitdf02d0b3f0f438e6a773528010cc360d01b8f393 (patch)
treef4d45a0bbb9f268b6da56e013738d429e71f5054 /Lib/test/output/test_sre
parent47c60ec9a0dfabcccdfdeee9d3077f08423505bd (diff)
downloadcpython-df02d0b3f0f438e6a773528010cc360d01b8f393.zip
cpython-df02d0b3f0f438e6a773528010cc360d01b8f393.tar.gz
cpython-df02d0b3f0f438e6a773528010cc360d01b8f393.tar.bz2
- fixed default value handling in group/groupdict
- added test suite
Diffstat (limited to 'Lib/test/output/test_sre')
-rw-r--r--Lib/test/output/test_sre14
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/test/output/test_sre b/Lib/test/output/test_sre
new file mode 100644
index 0000000..65eadf9
--- /dev/null
+++ b/Lib/test/output/test_sre
@@ -0,0 +1,14 @@
+test_sre
+test_support -- test failed re module pickle
+test_support -- test failed re module cPickle
+=== Syntax error: ('(?P<foo_123>a)(?P=foo_123)', 'aa', 0, 'g1', 'a')
+=== Failed incorrectly ('^(.+)?B', 'AB', 0, 'g1', 'A')
+=== Failed incorrectly ('(a+)+\\1', 'aa', 0, 'found+"-"+g1', 'aa-a')
+=== grouping error ('([^/]*/)*sub1/', 'd:msgs/tdir/sub1/trial/away.cpp', 0, 'found+"-"+g1', 'd:msgs/tdir/sub1/-tdir/') 'd:msgs/tdir/sub1/-trial/' should be 'd:msgs/tdir/sub1/-tdir/'
+=== Syntax error: ('(?P<id>aa)(?P=id)', 'aaaa', 0, 'found+"-"+id', 'aaaa-aa')
+=== grouping error ('([abc])*bcd', 'abcd', 0, 'found+"-"+g1', 'abcd-a') 'abcd-c' should be 'abcd-a'
+=== grouping error ('(?i)([abc])*bcd', 'ABCD', 0, 'found+"-"+g1', 'ABCD-A') 'ABCD-C' should be 'ABCD-A'
+=== Syntax error: ('a(?!b).', 'abad', 0, 'found', 'ad')
+=== Syntax error: ('a(?=d).', 'abad', 0, 'found', 'ad')
+=== Syntax error: ('a(?=c|d).', 'abad', 0, 'found', 'ad')
+=== Failed incorrectly ('^(.+)?B', 'AB', 0, 'g1', 'A')