mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-09 07:45:47 +08:00
more detailed tests and implementation of array indexing in the interpreter
This commit is contained in:
1 parent
50ef3c7fa3
commit
a6fbcde184
2 files changed
+19
-3
No files matched your search
@@ -51,3 +51,15 @@ class TestInterpreterAPI(TestCase):
|
||||
self.check_interpreter_complete('array[0].real',
|
||||
locals(),
|
||||
[])
|
||||
|
||||
# something different, no index given, still just return the right
|
||||
self.check_interpreter_complete('array[int].real',
|
||||
locals(),
|
||||
['real'])
|
||||
self.check_interpreter_complete('array[int()].real',
|
||||
locals(),
|
||||
['real'])
|
||||
# inexistent index
|
||||
self.check_interpreter_complete('array[2].upper',
|
||||
locals(),
|
||||
['upper'])
|
||||
Reference in new issue
Block a user