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

Expect message test doesn't look right #102

Open
rjake opened this issue May 26, 2022 · 0 comments
Open

Expect message test doesn't look right #102

rjake opened this issue May 26, 2022 · 0 comments

Comments

@rjake
Copy link
Owner

rjake commented May 26, 2022

# this returns TRUE
expect_message(
    data.frame(new = 18:22/100, old = 0.2) |>
      add_headline_column(new, old, return_cols = c(x, y))
  )

# even though this doesn't print a message
    data.frame(new = 18:22/100, old = 0.2) |>
      add_headline_column(new, old, return_cols = c(x, y))

# but this shows a message
capture_messages(
    data.frame(new = 18:22/100, old = 0.2) |>
      add_headline_column(
        new, old,
        return_cols = c(x, y)
      )
  )
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