1
0
forked from VimPlug/jedi

generator problem test

This commit is contained in:
David Halter
2013-08-01 10:23:22 +02:00
parent ea2f9ebd4c
commit cef58f89a8

View File

@@ -436,6 +436,15 @@ class TestRegression(TestBase):
[1, 2, 3, 4, 5, 6, 7, 8, 9, (x)] # <-- here [1, 2, 3, 4, 5, 6, 7, 8, 9, (x)] # <-- here
""", '(x)] # <-- here', [None]) """, '(x)] # <-- here', [None])
def test_generator(self):
# Did have some problems with the usage of generator completions this
# way.
s = "def abc():\n" \
" yield 1\n" \
"abc()."
assert self.completions(s)
class TestDocstring(TestBase): class TestDocstring(TestBase):