We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be nice if expect_equal printed the values even when sizes differ. Example:
expect_equal
> a <- c(1) > b <- c(2,3) > testthat::expect_equal(a,b) Error: `a` not equal to `b`. Lengths differ: 1 is not 2
The text was updated successfully, but these errors were encountered:
You should switch to the 3rd edition where this looks much better 😄
a <- c(1) b <- c(2,3) testthat::local_edition(3) testthat::expect_equal(a,b) #> Error: `a` (`actual`) not equal to `b` (`expected`). #> #> `actual`: 1 #> `expected`: 2 3
Created on 2024-04-17 with reprex v2.1.0
More info about the 3rd ed at https://testthat.r-lib.org/articles/third-edition.html
Sorry, something went wrong.
No branches or pull requests
It would be nice if
expect_equal
printed the values even when sizes differ. Example:The text was updated successfully, but these errors were encountered: