diff --git a/tests/testthat/_snaps/dplyr.md b/tests/testthat/_snaps/dplyr.md deleted file mode 100644 index ac76117e..00000000 --- a/tests/testthat/_snaps/dplyr.md +++ /dev/null @@ -1,7 +0,0 @@ -# no homonyms - - Code - names_common[!same] - Output - character(0) - diff --git a/tests/testthat/test-dplyr.R b/tests/testthat/test-dplyr.R index 273b8152..476d1372 100644 --- a/tests/testthat/test-dplyr.R +++ b/tests/testthat/test-dplyr.R @@ -16,8 +16,5 @@ test_that("no homonyms", { objs_dplyr <- mget(names_common, dplyr) objs_duckplyr <- mget(names_common, duckplyr) - same <- purrr::map2_lgl(objs_dplyr, objs_duckplyr, identical) - expect_snapshot({ - names_common[!same] - }) + expect_identical(objs_duckplyr, objs_dplyr[names(objs_duckplyr)]) })