mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-02 10:13:22 +08:00
Test setting line/column multiple times
This commit is contained in:
@@ -358,3 +358,11 @@ def test_goto_on_string(Script, code, column):
|
|||||||
script = Script(code)
|
script = Script(code)
|
||||||
assert not script.infer(column=column)
|
assert not script.infer(column=column)
|
||||||
assert not script.goto(column=column)
|
assert not script.goto(column=column)
|
||||||
|
|
||||||
|
|
||||||
|
def test_multi_goto(Script):
|
||||||
|
script = Script('x = 1\ny = 1.0\nx\ny')
|
||||||
|
x, = script.goto(line=3)
|
||||||
|
y, = script.goto(line=4)
|
||||||
|
assert x.line == 1
|
||||||
|
assert y.line == 2
|
||||||
|
|||||||
Reference in New Issue
Block a user