introduced std library tests (only regex for now) and a working _sre mixin, which is used by the module

This commit is contained in:
David Halter
2012-09-04 15:59:24 +02:00
parent f47ae1ad4f
commit 778899af86
2 changed files with 119 additions and 0 deletions

20
test/completion/std.py Normal file
View File

@@ -0,0 +1,20 @@
"""
std library stuff
"""
# -----------------
# re
# -----------------
import re
c = re.compile(r'a')
#? int()
c.match().start()
#? int()
re.match(r'a', 'a').start()
#? int()
next(re.finditer('a', 'a')).start()
#? str()
re.sub('a', 'a')