Skip to content
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

Upcoming Patrick releases: test cases have invalid strings for glue interpolation #2706

Open
michaelquinn32 opened this issue Jan 11, 2025 · 0 comments

Comments

@michaelquinn32
Copy link
Contributor

The next version of patrick (the parameterized testing package) will use glue interpolation for test cases. There are test case names in lintr that contain code in curly braces, which throw errors when glue_data is called on them.

Here are some examples:

My choice would be to add literal names to these test cases. While this is a little less informative than showing the data, it still seems to get the point across.

    char <- c(
      caret = "^",
      dollar = "$",
      curly_brace_open = "{",
      curly_brace_close = "}",
      parenthesis_open = "(",
      parenthesis_close = ")",
      period = ".",
      asterisk = "*",
      plus = "+",
      question_mark = "?",
      pipe = "|",
      square_bracket_open = "[",
      square_bracket_close = "]",
      backslashes = "\\\\",
      angle_bracket_open = "<",
      angle_bracket_close = ">",
      equals = "=",
      colon = ":",
      semicolon = ";",
      forward_slash = "/",
      underscore = "_",
      dash = "-",
      exclamation_mark = "!",
      at = "@",
      hash = "#",
      percent = "%",
      ampersand = "&",
      tilde = "~"
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant