1
0
forked from VimPlug/jedi

more detailed tests and implementation of array indexing in the interpreter

This commit is contained in:
Dave Halter
2014-04-04 13:22:12 +02:00
parent 50ef3c7fa3
commit a6fbcde184
2 changed files with 19 additions and 3 deletions

View File

@@ -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'])