tests/testthat/test-utilities.R

# Tests are for the various utility functions in the package
context("Utility functions")


test_that("utility functions work correctly", {

  # Expectations
  expect_identical(makeData(1:3, label = "a"), data.frame("a" = 1:3))

})

Try the investr package in your browser

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

investr documentation built on March 31, 2022, 9:06 a.m.