Skip to content

Make Swift REPL pexpect test more robust by allowing extra control ch… #3754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ def test_lldb_command_completion(self):

# Try completing something already complete.
self.child.send(":b\t")
self.child.expect_exact(":b ")
# Use list of strings to work when there are embedded ansi sequences.
self.child.expect_exact([":", "b "])
self.child.sendline("")

# Try completing something that only has one result "vers" -> "version".
self.child.send(":vers\t")
# Use list of strings to work when there are embedded ansi sequences.
self.child.expect_exact([":", "version"])
self.child.sendline("")

# Try completing something that has multiple completions.
self.child.send(":\t")
self.child.expect_exact("Available completions:")
self.child.expect_exact(":help")
self.child.expect_exact([":", "help"])
self.child.expect_exact("More (Y/n/a)")
self.child.send("n")
self.child.sendline("help")
Expand Down