tests/testthat/test-tribble.R

test_that("works", {
  res <- tribble(
    ~ x, ~ y, ~ z,
    1, 4, "a",
    2, 5, "b",
    3, 6, "c"
  )
  check <- tidytable(x = 1:3, y = 4:6, z = c("a", "b", "c"))
  expect_equal(res, check)
})

Try the tidytable package in your browser

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

tidytable documentation built on Oct. 5, 2023, 5:07 p.m.