Skip to content

Confusing reference to 'pattern' in new error message for mis-specified expect_condition() #2053

Open
@MichaelChirico

Description

@MichaelChirico

"Can't specify {.arg ...} without {.arg pattern}.",

AFAICT pattern= is an internal-only argument; the user-facing argument is always called regexp=:

https://testthat.r-lib.org/reference/expect_error.html

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