diff --git a/content/blog/testthat-3-1/index.Rmd b/content/blog/testthat-3-1/index.Rmd index 02c82d6b7..f777d2f09 100644 --- a/content/blog/testthat-3-1/index.Rmd +++ b/content/blog/testthat-3-1/index.Rmd @@ -144,7 +144,7 @@ informative_error <- function() { ) } -err <- expect_error(my_function(), class = "package_error_class") +err <- expect_error(informative_error(), class = "package_error_class") expect_equal(err$name, "patrice") expect_equal(err$number, 17) ```