mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-18 03:25:55 +08:00
Tests for f(| ) and f( |) (the latter fails)
This commit is contained in:
@@ -126,6 +126,14 @@ class TestRegression(TestBase):
|
|||||||
defs = self.definition_when_in_function_call('f(', ')')
|
defs = self.definition_when_in_function_call('f(', ')')
|
||||||
self.assertEqual(defs[0].description, 'def f')
|
self.assertEqual(defs[0].description, 'def f')
|
||||||
|
|
||||||
|
def test_definition_when_in_function_call_empty_paren_pre_space(self):
|
||||||
|
defs = self.definition_when_in_function_call('f( ', ')')
|
||||||
|
self.assertEqual(defs[0].description, 'def f')
|
||||||
|
|
||||||
|
def test_definition_when_in_function_call_empty_paren_post_space(self):
|
||||||
|
defs = self.definition_when_in_function_call('f(', ' )')
|
||||||
|
self.assertEqual(defs[0].description, 'def f')
|
||||||
|
|
||||||
def test_function_call_signature(self):
|
def test_function_call_signature(self):
|
||||||
defs = self.definition("""
|
defs = self.definition("""
|
||||||
def f(x, y=1, z='a'):
|
def f(x, y=1, z='a'):
|
||||||
|
|||||||
Reference in New Issue
Block a user