mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 02:27:06 +08:00
introduced std library tests (only regex for now) and a working _sre mixin, which is used by the module
This commit is contained in:
20
test/completion/std.py
Normal file
20
test/completion/std.py
Normal 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')
|
||||
Reference in New Issue
Block a user