tests/testthat/test_prep_func.R

test_that("prepare_data() works", {

  # Creates test data set ---------------------------------------------------
  test_obj <- create_test_data()

  # Checks for equality -----------------------------------------------------
  # Using waldo under the hood so presumably minor differences in attributes are ignored
  testthat::expect_equal(
      test_obj,
      corporaexplorer::test_data
  )
})

Try the corporaexplorer package in your browser

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

corporaexplorer documentation built on Sept. 11, 2024, 7:21 p.m.