tests/testthat/test-test_helpers.R

test_that("expect_dfs_equal works", {

  a <- data.frame(x = 1:3, y = 4:6)
  b <- data.frame(x = 1:3, y = 5:7)

  expect_error(
    expect_dfs_equal(a, b, keys = "x"),
    regexp = "Differences found\\.*"
  )

})
epijim/admiral documentation built on Feb. 13, 2022, 12:15 a.m.