Skip to content

examples with literal value #4

Open

Description

@Evan-Adam

Hello
First, thanks for this amazing library.

I'm using it in multiples tests, but would like advice on using it with some regex. For example this :

    ${output}    Run    ${command}
    Should Match Regexp    ${output}    ${expected_result}

    Examples:     tc    extra_options                   expected_result    --
            ...        2     str 200                     str (-?\\\\d+)

I'm trying to check the output of a command with a regexp, but need 4 antislash everytime I want to use a regexp antislash (\d became \\d)
same with $ and {, which are heavily present in my output.

I tryied to use """, ", and ' to escape my string but it didn't work.

Do you know if there is a way to declare a string without any interpolation by robot/robot-examples ?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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