mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-24 20:56:40 +08:00
added tests
This commit is contained in:
48
test/completion/types.py
Normal file
48
test/completion/types.py
Normal file
@@ -0,0 +1,48 @@
|
||||
# -----------------
|
||||
# lists
|
||||
# -----------------
|
||||
arr = []
|
||||
#? ['append']
|
||||
arr().app
|
||||
|
||||
#? ['append']
|
||||
list().app
|
||||
|
||||
|
||||
# -----------------
|
||||
# dicts
|
||||
# -----------------
|
||||
dic = {}
|
||||
|
||||
#? ['clear', 'copy']
|
||||
dic.c
|
||||
|
||||
dic2 = dict(a=1, b=2)
|
||||
#? ['pop', 'popitem']
|
||||
dic2.p
|
||||
|
||||
|
||||
# -----------------
|
||||
# set
|
||||
# -----------------
|
||||
set_t = {1,2}
|
||||
|
||||
#? ['clear', 'copy']
|
||||
set_t.c
|
||||
|
||||
set_t2 = set()
|
||||
|
||||
#? ['clear', 'copy']
|
||||
set_t2.c
|
||||
|
||||
# -----------------
|
||||
# tuples
|
||||
# -----------------
|
||||
tup = ('',2)
|
||||
|
||||
#? ['count']
|
||||
tup.c
|
||||
|
||||
tup2 = tuple()
|
||||
#? ['index']
|
||||
tup2.i
|
||||
Reference in New Issue
Block a user