Skip to content

Commit 758fc78

Browse files
committed
add-test-case
1 parent 8576912 commit 758fc78

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/test_completer.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ def test_greedy_completions(self):
596596
"""
597597
ip = get_ipython()
598598
ip.ex("a=list(range(5))")
599+
ip.ex("b,c = 1, 1.2")
599600
ip.ex("d = {'a b': str}")
600601
ip.ex("x=y='a'")
601602
_, c = ip.complete(".", line="a[0].")
@@ -666,7 +667,7 @@ def _(line, cursor_pos, expect, message, completion):
666667
"(x.upper() == y.",
667668
16,
668669
".upper",
669-
"Should have completed on `x.upper() == y.`: %s",
670+
"Should have completed on `(x.upper() == y.`: %s",
670671
Completion(16, 16, "upper"),
671672
)
672673
_(
@@ -683,6 +684,13 @@ def _(line, cursor_pos, expect, message, completion):
683684
"Should have completed on `{'==', 'abc'}.`: %s",
684685
Completion(14, 14, "add"),
685686
)
687+
_(
688+
"b + c.",
689+
6,
690+
".hex",
691+
"Should have completed on `b + c.`: %s",
692+
Completion(6, 6, "hex"),
693+
)
686694
def test_omit__names(self):
687695
# also happens to test IPCompleter as a configurable
688696
ip = get_ipython()

0 commit comments

Comments
 (0)