Skip to content

Strict output expectations #176

Description

@gwenn

Hello,
I am trying to use rexpect for testing rustyline.
But it seems that ANSI escape sequences are ignored in the output stream.
For example, I can remove this:

    p.exp_string("\x1b[?2004h")?; // bracketed paste on

with no impact on the tests.
But if I replace it with a typo:

    p.exp_string("\x1b[?2004x")?; // bracketed paste on

tests now fail.
Is there a way to tell rexpect to fail if an ANSI escape sequence is missing ?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions