-- SRE 0.9.8: now that the bug is fixed, I might as well enable

the test again...
This commit is contained in:
Fredrik Lundh 2000-08-01 13:16:55 +00:00
parent c2ed621d75
commit 067bebfe2d
1 changed files with 2 additions and 4 deletions

View File

@ -152,10 +152,8 @@ try:
assert sre.split("(?::*)", ":a:b::c") == ['', 'a', 'b', 'c']
assert sre.split("(:)*", ":a:b::c") == ['', ':', 'a', ':', 'b', ':', 'c']
assert sre.split("([b:]+)", ":a:b::c") == ['', ':', 'a', ':b::', 'c']
## print sre.split("(b)|(:+)", ":a:b::c")
## print ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
## assert sre.split("(b)|(:+)", ":a:b::c") == \
## ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
assert sre.split("(b)|(:+)", ":a:b::c") == \
['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
assert sre.split("(?:b)|(?::+)", ":a:b::c") == ['', 'a', '', '', 'c']
except AssertionError:
raise TestFailed, "sre.split"