tests/testthat/test-bdc_summary_col.R

.missing_names <- c(TRUE, TRUE, TRUE, FALSE, FALSE)

.missing_coordinates <- c(TRUE, FALSE, FALSE, TRUE, FALSE)

x <- data.frame(.missing_names, .missing_coordinates)

test_that("bdc_summary_col can summarise the tested columns", {
  resultant <- bdc_summary_col(data = x)

  expect_equal(resultant$.summary, c(TRUE, FALSE, FALSE, FALSE, FALSE))
})

Try the bdc package in your browser

Any scripts or data that you put into this service are public.

bdc documentation built on April 3, 2025, 10:53 p.m.