tests/testthat/test-levels.R

test_that("rbind() works", {
  term <- term(x = 1)
  term_df <- data.frame(term = term)
  expect_identical(rbind(term_df, term_df), data.frame(term = c(term, term)))
})

test_that("rbind() works", {
  term <- term_rcrd("x[1]")
  term_df <- data.frame(term = term)
  expect_identical(rbind(term_df, term_df), data.frame(term = c(term, term)))
})

Try the term package in your browser

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

term documentation built on Sept. 29, 2022, 5:14 p.m.