Closed levsa closed 2 months ago
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
It would be nice if
expect_equal
printed the values even when sizes differ. Example: