tests/testthat/tests.R

context("Testing: function arguments of base and hellno are the same")

test_that("data.frame()", {
  expect_true(
    all(
      names(as.list(args(hellno::data.frame))) %in%
      names(as.list(args(base::data.frame)))
    )
  )
})

test_that("as.data.frame()", {
  expect_true(
    all(
      names(as.list(args(hellno::data.frame))) %in%
      names(as.list(args(base::data.frame)))
    )
  )
})

Try the hellno package in your browser

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

hellno documentation built on May 2, 2019, 6:47 a.m.