...
This commit is contained in:
parent
a5d05a2954
commit
1881f4582e
@ -547,6 +547,11 @@ func TestReadlineCompletion(t *testing.T) {
|
||||
if diff := cmp.Diff(after_cursor, aa); diff != "" {
|
||||
t.Fatalf("Text after cursor not as expected:\n%s", diff)
|
||||
}
|
||||
actual, _ := rl.completion_screen_lines()
|
||||
expected := []string{"a1 a11 a2 "}
|
||||
if diff := cmp.Diff(expected, actual[1:]); diff != "" {
|
||||
t.Fatalf("Completion screen lines not as expected:\n%s", diff)
|
||||
}
|
||||
}
|
||||
rl.add_text("a")
|
||||
rl.perform_action(ActionCompleteForward, 1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user